/* Dynamic Promotions - Beautiful Professional Design */

/* === BANNER === */
.dp-iframe-body{
    font-family: FbSpoilerRegular, sans-serif;
    margin: 0;
}

.dp-promotion-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 30px;
    margin-bottom: 40px;
    /* border-radius: 16px; */
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.dp-banner-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    direction: rtl;
}

.dp-banner-image {
    flex: 0 0 350px;
    order: 2;
}

.dp-banner-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
}

.dp-banner-content {
    flex: 1;
    text-align: right;
    order: 1;
}

.dp-banner-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.dp-banner-content p {
    font-size: 20px;
    margin: 0 0 30px 0;
    opacity: 0.95;
    line-height: 1.5;
}

.dp-countdown-timer {
    display: inline-flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px 35px;
    border-radius: 12px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dp-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.dp-countdown-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dp-countdown-label {
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.95;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* === MAIN LAYOUT === */
.dp-promotions-wrapper {
    display: flex;
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto 50px;
    padding: 0 25px;
    direction: rtl;
}

/* === SIDEBAR === */
.dp-promotions-sidebar {
    flex: 0 0 320px;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dp-sidebar-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111827;
    letter-spacing: -0.5px;
}

.dp-sidebar-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.dp-filter-group {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.dp-filter-group:last-of-type {
    border-bottom: none;
}

.dp-filter-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.dp-filter-option:hover {
    background: #f3f4f6;
}

.dp-filter-option input[type="radio"],
.dp-filter-option input[type="checkbox"] {
    margin-left: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dp-filter-option label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    flex: 1;
    font-weight: 500;
}

.dp-coupon-finder {
    margin-top: 28px;
    padding: 24px;
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

.dp-coupon-finder-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #0369a1;
}

.dp-coupon-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #7dd3fc;
    border-radius: 8px;
    font-size: 14px;
    direction: rtl;
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dp-coupon-select:hover {
    border-color: #38bdf8;
}

.dp-coupon-select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* === PROMOTIONS GRID === */
.dp-promotions-content {
    flex: 1;
    min-width: 0;
}

.dp-promotions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* === PROMOTION BOX - BEAUTIFUL DESIGN === */
.dp-promotion-box {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23E2E5EA' stroke-width='3' stroke-dasharray='15' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: cover;
}


.dp-promotion-box:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23E2E5EA' stroke-width='3' stroke-dasharray='15' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: cover;
}

/* Discount Badge */
.dp-discount-badge {
    position: absolute;
    top: 12px;
    right: -8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    z-index: 2;
    letter-spacing: 0.5px;
}
.dp-discount-badge:before{
    display: block;
    content: "";
    position: absolute;
    top: -7px;
    right: 0px;
    width: 0;
    height: 0;
    border-bottom: 7px solid #0c5fab;
    border-left: 10px solid rgba(0, 0, 0, 0);
    transform: scaleX(-1);

}
/* Top Pick Badge */
.dp-top-pick-badge {
    position: absolute;
    top: -2px;
    left: 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 8px 20px 8px 14px;
    border-radius: 0 0 12px 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    letter-spacing: 0.5px;
}

.dp-top-pick-badge::before {
    /* content: "1"; */
    background: white;
    color: #3b82f6;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* Number Circle */
.dp-promotion-number {
    flex: 0 0 44px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 3px solid #d1d5db;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Logo */
.dp-promotion-logo {
    flex: 0 0 100px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3%;
}

.dp-promotion-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Main Content */
.dp-promotion-main {
    flex: 1;
    min-width: 0;
}

.dp-promotion-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111827;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.dp-promotion-content {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.dp-promotion-content p {
    margin: 0 0 8px 0;
}

/* Timer */
.dp-promotion-timer {
    display: inline-flex;
    gap: 6px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.dp-promotion-timer-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.dp-timer-value {
    color: white;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    letter-spacing: 0.5px;
}

.dp-timer-label {
    color: #78350f;
    font-size: 11px;
    font-weight: 700;
    margin-left: 2px;
}

/* Meta Info */
.dp-promotion-meta {
    display: block;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #6b7280;
    margin: auto;
    text-align: center;
}

.dp-verified,
.dp-used {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.dp-verified {
    color: #059669;
}

.dp-used {
    color: #3b82f6;
}

/* Read More */
.dp-read-more-toggle {
    position: absolute;
    bottom: -10px;
    right: 30px;
    display: inline-block;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: #3b82f6;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 5;
}

.dp-read-more-toggle:hover {
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.dp-read-more-content {
    grid-column: 1 / -1;
    width: calc(100% - 56px);
    margin: 15px 28px;
    padding: 18px;
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    border-right: 4px solid #3b82f6;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dp-read-less-toggle {
    background: #3b82f6;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 8px;
    margin-top: 12px;
    display: block;
    transition: background 0.2s;
}

.dp-read-less-toggle:hover {
    background: #2563eb;
}

/* Action Button */
.dp-promotion-action {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dp-promotion-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.dp-promotion-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.dp-promotion-button:hover::before {
    left: 100%;
}

.dp-promotion-button:hover {
    background: linear-gradient(135deg, #0f855f 0%, #0c4b37 100%);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.dp-promotion-button:active {
    transform: translateY(0);
}

/* Button Icon - ABOVE button text */
.dp-button-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Loading Spinner */
.dp-promotion-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.dp-promotion-button .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.dp-promotion-button.loading .spinner {
    display: block;
}

.dp-promotion-button.loading .button-text {
    display: none;
}
.dp-promotion-button.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Success/Error messages */
.dp-message {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

.dp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .dp-promotions-wrapper {
        flex-direction: column;
    }
    
    .dp-promotions-sidebar {
        width: 85%;
        position: static;
    }
}

@media (max-width: 768px) {
    .dp-banner-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .dp-banner-image {
        order: 1;
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .dp-banner-content {
        order: 2;
        text-align: center;
    }
    
    .dp-banner-content h1 {
        font-size: 32px;
    }
    
    .dp-promotion-box {
        flex-wrap: wrap;
        padding: 20px;
    }
    
    .dp-promotion-logo {
        flex: 0 0 80px;
        height: 60px;
    }
    
    .dp-promotion-action {
        flex: 1 1 100%;
    }
    /* .dp-message {
        width: 100%;
    } */
    .dp-discount-badge {
        top: 5px;
        right: -10px;
    }
    .dp-read-more-toggle{
        bottom: -20px;
        right: -5px;
    }
}
