/* DigiPOS Online Ordering - Frontend Styles */

* { box-sizing: border-box; }

#digipos-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    color: #333;
}

/* Header */
.digipos-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}
.digipos-header h1 { margin: 0 0 8px; font-size: 28px; }
.digipos-header p { margin: 0; opacity: 0.8; font-size: 16px; }

/* Container */
.digipos-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Menu (Left) */
.digipos-menu {
    flex: 1;
    min-width: 0;
}

/* Category Tabs */
.digipos-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px 0;
    position: sticky;
    top: 0;
    background: #f5f5f5;
    z-index: 10;
    padding: 12px 0;
}
.digipos-cat-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    color: #555;
}
.digipos-cat-btn:hover { border-color: #1a1a2e; color: #1a1a2e; }
.digipos-cat-btn.active {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

/* Products Grid */
.digipos-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

/* Product Card */
.digipos-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.digipos-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.digipos-product-card.hidden { display: none; }

.digipos-product-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}
.digipos-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.digipos-no-img span {
    font-size: 48px;
    color: #fff;
    font-weight: bold;
}

.digipos-product-info { padding: 14px 16px; }
.digipos-product-info h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}
.digipos-product-desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.digipos-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.digipos-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}
.digipos-add-btn {
    padding: 8px 18px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.digipos-add-btn:hover { background: #2d2d5e; }

/* Cart (Right) */
.digipos-cart {
    width: 380px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 20px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.digipos-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.digipos-cart-header h2 { margin: 0; font-size: 20px; }
.digipos-cart-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
}
.digipos-cart-header button:hover { color: #e74c3c; }

/* Order Type */
.digipos-order-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.digipos-type-btn {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    color: #666;
}
.digipos-type-btn:hover { border-color: #1a1a2e; }
.digipos-type-btn.active {
    border-color: #1a1a2e;
    background: #1a1a2e;
    color: #fff;
}
.digipos-type-icon { display: block; font-size: 24px; margin-bottom: 4px; }

/* Order Options */
.digipos-order-options {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}
.digipos-order-options label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

/* Customer Info */
.digipos-customer-info {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}
.digipos-customer-info label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 10px;
    color: #555;
}
.digipos-customer-info label:first-child { margin-top: 0; }

/* Inputs */
.digipos-input, .digipos-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
}
.digipos-input:focus, .digipos-select:focus {
    outline: none;
    border-color: #1a1a2e;
}

/* Postcode Lookup */
.digipos-postcode-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.digipos-postcode-row .digipos-input {
    flex: 1;
}
.digipos-find-address-btn {
    padding: 10px 16px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
}
.digipos-find-address-btn:hover {
    background: #2d2d4e;
}
.digipos-find-address-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.digipos-address-results {
    margin-top: 8px;
}
.digipos-address-results label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    display: block;
}
.digipos-address-results .digipos-select {
    font-size: 13px;
}

/* Cart Items */
.digipos-cart-items { margin-bottom: 16px; }
.digipos-cart-empty {
    text-align: center;
    padding: 30px 0;
    color: #aaa;
}
.digipos-cart-empty p { margin: 4px 0; }

.digipos-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.digipos-cart-item:last-child { border-bottom: none; }

.digipos-item-info { flex: 1; min-width: 0; }
.digipos-item-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.digipos-item-price { font-size: 13px; color: #888; margin: 0; }

.digipos-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.digipos-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.15s;
    color: #555;
}
.digipos-qty-btn:hover {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}
.digipos-qty-btn.remove:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}
.digipos-qty-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.digipos-item-total {
    font-weight: 600;
    font-size: 14px;
    min-width: 60px;
    text-align: right;
}

/* Cart Summary */
.digipos-cart-summary {
    padding: 12px 0;
    border-top: 2px solid #eee;
    margin-bottom: 12px;
}
.digipos-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #666;
}
.digipos-total-row {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 4px;
}

/* Tip Section */
.digipos-tip-section {
    padding: 10px 0;
    border-top: 1px dashed #ddd;
    margin-top: 4px;
}
.digipos-tip-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}
.digipos-tip-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}
.digipos-tip-btn {
    flex: 1 1 auto;
    min-width: 60px;
    padding: 8px 4px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}
.digipos-tip-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}
.digipos-tip-btn.active {
    border-color: #4CAF50;
    background: #4CAF50;
    color: #fff;
}
.digipos-tip-custom-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.digipos-tip-currency {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}
.digipos-tip-input {
    flex: 1;
    padding: 8px 10px !important;
    font-size: 16px !important;
    max-width: 120px;
}
.digipos-tip-row span:last-child {
    color: #4CAF50;
    font-weight: 600;
}
.digipos-summary-tip span {
    color: #4CAF50 !important;
}
.digipos-summary-fee {
    color: #666;
    font-size: 13px;
}

/* Checkout Button */
.digipos-checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.digipos-checkout-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,184,148,0.4);
}
.digipos-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.digipos-min-order-msg {
    text-align: center;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px;
    background: #ffeaea;
    border-radius: 6px;
}

/* Loading spinner */
.digipos-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: digipos-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes digipos-spin { to { transform: rotate(360deg); } }

/* Success / Cancel pages */
.digipos-result-page {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}
.digipos-success-box, .digipos-cancel-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.digipos-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #00b894;
    color: #fff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.digipos-cancel-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.digipos-order-number {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}
.digipos-order-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}
.digipos-order-info h3 {
    margin: 0 0 10px;
    color: #1a1a2e;
}
.digipos-order-summary {
    text-align: left;
    margin: 20px 0;
}
.digipos-order-summary h3 { margin: 0 0 12px; color: #1a1a2e; }
.digipos-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.digipos-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    font-size: 18px;
    border-top: 2px solid #eee;
    margin-top: 8px;
}
.digipos-confirmation-email {
    color: #888;
    font-size: 13px;
    margin-top: 20px;
}
.digipos-tracking-link {
    margin-top: 15px;
    padding: 12px 16px;
    background: #f0f7ff;
    border-radius: 8px;
    font-size: 13px;
}
.digipos-tracking-link p {
    margin: 0 0 6px;
    font-weight: 600;
    color: #333;
}
.digipos-tracking-link a {
    color: #1a73e8;
    word-break: break-all;
    font-size: 12px;
}
.digipos-back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}
.digipos-back-btn:hover { background: #2d2d5e; color: #fff; }

/* Topping Modal */
.digipos-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.digipos-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.digipos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 12px;
    border-bottom: 1px solid #eee;
}
.digipos-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a2e;
}
.digipos-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.digipos-modal-close:hover { color: #333; }
.digipos-modal-toppings {
    padding: 16px 24px;
}
.digipos-topping-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    gap: 10px;
}
.digipos-topping-row:last-child { border-bottom: none; }
.digipos-topping-row:hover { background: #f9f9f9; }
.digipos-topping-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #00b894;
    flex-shrink: 0;
}
.digipos-topping-name {
    flex: 1;
    font-size: 15px;
    color: #333;
}
.digipos-topping-price {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}
.digipos-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 0 0 16px 16px;
}
.digipos-modal-footer span {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}
.digipos-modal-footer .digipos-checkout-btn {
    padding: 10px 24px;
    font-size: 15px;
}

/* Topping Sections */
.digipos-topping-section {
    margin-bottom: 8px;
}
.digipos-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 6px;
    border-bottom: 2px solid #1a1a2e;
    margin-bottom: 4px;
}
.digipos-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.digipos-section-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e74c3c;
    color: #fff;
}
.digipos-section-badge.optional {
    background: #95a5a6;
}
.digipos-section-badge.meal {
    background: #00b894;
}

/* Radio inputs in modal */
.digipos-topping-input[type="radio"] {
    accent-color: #1a1a2e;
}

/* Meal Deal section */
.digipos-meal-section {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 2px dashed #00b894;
}
.digipos-meal-toggle {
    background: #f0fff4;
    border-radius: 8px;
    padding: 10px !important;
}
.digipos-meal-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 8px 0 4px;
}
.digipos-meal-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 4px;
}
.digipos-meal-select:focus {
    outline: none;
    border-color: #00b894;
}

/* Cart item toppings */
.digipos-item-toppings {
    font-size: 12px;
    color: #00b894;
    margin: 2px 0 0;
    font-style: italic;
}

/* Cart item meal info */
.digipos-item-meal {
    font-size: 12px;
    color: #e67e22;
    margin: 2px 0 0;
    font-weight: 500;
}

/* Toast notification */
.digipos-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a2e;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.digipos-toast.show { transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .digipos-container {
        flex-direction: column;
    }
    .digipos-cart {
        width: 100%;
        position: static;
        max-height: none;
    }
    .digipos-products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
@media (max-width: 480px) {
    .digipos-header { padding: 20px; }
    .digipos-header h1 { font-size: 22px; }
    .digipos-products {
        grid-template-columns: 1fr;
    }
    .digipos-cart { padding: 14px; }
    .digipos-status-steps {
        gap: 4px;
    }
    .digipos-step span {
        font-size: 11px;
    }
    .digipos-step-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .digipos-notification-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Status Tracker ── */
.digipos-status-tracker {
    margin: 24px 0 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}
.digipos-status-tracker h3 {
    margin: 0 0 20px;
    text-align: center;
    color: #1a1a2e;
    font-size: 18px;
}
.digipos-status-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.digipos-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.digipos-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
    color: #999;
}
.digipos-step span {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    transition: color 0.3s ease;
}
.digipos-step.completed .digipos-step-icon {
    background: #00b894;
    color: #fff;
}
.digipos-step.completed span {
    color: #00b894;
}
.digipos-step.active .digipos-step-icon {
    animation: digipos-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.2);
}
.digipos-step-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    min-width: 20px;
    max-width: 60px;
    transition: background 0.3s ease;
    margin-bottom: 22px;
}
.digipos-step-line.completed {
    background: #00b894;
}

@keyframes digipos-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ── Notification Permission Banner ── */
.digipos-notification-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #eaf4ff;
    border: 1px solid #b8d9f5;
    border-radius: 10px;
}
.digipos-notification-banner p {
    flex: 1;
    margin: 0;
    font-size: 13px;
    color: #1a5276;
}
.digipos-notify-btn {
    padding: 8px 16px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.digipos-notify-btn:hover {
    background: #2d2d5e;
}
.digipos-notify-dismiss {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.digipos-notify-dismiss:hover {
    color: #333;
}

/* ── Payment Options ── */
.digipos-payment-options {
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1px dashed #ddd;
}
.digipos-payment-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}
.digipos-payment-buttons {
    display: flex;
    gap: 10px;
}
.digipos-payment-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}
.digipos-payment-btn:hover {
    border-color: #1a1a2e;
    color: #1a1a2e;
}
.digipos-payment-btn.active {
    border-color: #00b894;
    background: #e8f8f5;
    color: #00b894;
}
.digipos-payment-icon {
    font-size: 24px;
}

/* ── Payment Pending Notice (Success Page) ── */
.digipos-payment-pending-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0;
    padding: 14px 20px;
    background: #fff8e5;
    border: 2px solid #f5c518;
    border-radius: 10px;
    font-size: 16px;
    color: #a67c00;
}
.digipos-payment-pending-icon {
    font-size: 24px;
}

/* ── Active Deal Banner ── */
.digipos-active-deal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fff5e6 0%, #fff0d6 100%);
    border: 2px dashed #f39c12;
    border-radius: 10px;
    animation: deal-pulse 2s ease-in-out infinite;
}
.digipos-active-deal.applied {
    background: linear-gradient(135deg, #e8f8f5 0%, #d5f5e3 100%);
    border-color: #00b894;
    animation: none;
}
@keyframes deal-pulse {
    0%, 100% { border-color: #f39c12; }
    50% { border-color: #e67e22; }
}
.digipos-active-deal .deal-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.digipos-active-deal .deal-badge {
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.digipos-active-deal.applied .deal-badge {
    background: #00b894;
}
.digipos-active-deal .deal-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.digipos-active-deal .deal-condition,
.digipos-active-deal .deal-type-limit {
    font-size: 11px;
    color: #888;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 10px;
}
.digipos-active-deal .deal-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.digipos-active-deal .deal-status.applied {
    background: #00b894;
    color: #fff;
}
.digipos-active-deal .deal-status.pending {
    background: #f39c12;
    color: #fff;
}
.digipos-active-deal .deal-remove {
    width: 26px;
    height: 26px;
    border: none;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.digipos-active-deal .deal-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Discount Row in Summary */
.digipos-summary-row.discount-row {
    color: #00b894;
    font-weight: 600;
}
.digipos-summary-row.discount-row span:last-child {
    color: #00b894;
}
