/* Pay Yar Frontend Styles */

:root {
    --bg: #F8F6FF;
    --card: #ffffff;
    --muted: #5a6b7d;
    --primary: #5B3FFF;
    --accent: #FF5A2E;
    --glass-border: rgba(91, 63, 255, 0.18);
    --soft-shadow: 0 10px 30px rgba(18, 25, 40, 0.06);
    --deep-shadow: 0 20px 50px rgba(18, 25, 40, 0.12);
    --pay-yar-font: 'Iran Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

/* شورتکد و بخش پلاگین در فرانت از فونت ایران‌سنس استفاده می‌کنند */
.pay-yar-coffees-container,
.pay-yar-payment-wrapper,
.pay-yar-payment-form,
.pay-yar-quick-order-container,
.pay-yar-header-card,
.quick-order-card {
    font-family: var(--pay-yar-font);
}

html,
body {
    background: var(--bg);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: #111827;
}

/* Coffee Display Styles */
.pay-yar-coffees-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 20px;
}

.pay-yar-coffee-item {
    padding: 0;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    box-shadow: var(--soft-shadow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(16, 24, 40, 0.03);
}

.pay-yar-coffee-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    transition: width 0.36s ease;
    z-index: 0;
}

.pay-yar-coffee-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--deep-shadow);
}

.pay-yar-coffee-item:hover::before {
    width: 100%;
}

.coffee-item-inner {
    padding: 28px 22px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pay-yar-coffee-item .coffee-icon {
    font-size: 72px;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(16, 24, 40, 0.06));
}

.coffee-icon-img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    display: inline-block;
}

.pay-yar-coffee-item:hover .coffee-icon {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.pay-yar-coffee-item h3 {
    margin: 14px 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
    color: #111827;
}

.pay-yar-coffee-item .description {
    font-size: 13px;
    margin: 8px 0 18px 0;
    line-height: 1.6;
    opacity: 0.78;
    flex-grow: 1;
    color: #6b7280;
}

.pay-yar-coffee-item .price {
    font-size: 28px;
    margin: 18px 0 14px 0;
    font-weight: 800;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    color: var(--primary);
}

.pay-yar-coffee-item .price span {
    font-size: 13px;
    font-weight: 400;
}

/* Coffee Selection */
.coffee-selection-section h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 28px;
    color: #111827;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.coffee-selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.coffee-selector {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 10px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #5B3FFF, #00D4FF);
    color: white;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(91, 63, 255, 0.28);
}

.quantity-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.32);
    filter: brightness(1.1);
}

.quantity-input {
    width: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    text-align: center;
    font-weight: 700;
    border-radius: 6px;
    padding: 6px;
    font-size: 16px;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Payment Form */
.pay-yar-payment-wrapper {
    max-width: 360px;
    /* margin: 24px auto; */
    padding: 0 10px;
    box-sizing: border-box !important;
}

.pay-yar-payment-form {
    background: linear-gradient(180deg, rgba(248, 246, 255, 0.9), rgba(255, 250, 255, 0.95));
    padding: 10px 10px 0px 10px;
    border-radius: 14px;
    box-shadow: var(--deep-shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px) saturate(120%);
    box-sizing: border-box !important;
    width: 100%;
}

.pay-yar-payment-wrapper label,
.pay-yar-payment-form label {
    display: block !important;
    margin-bottom: -20px !important;
    margin-top: 5px !important;
    padding-right: 5px !important;
    font-weight: 600 !important;
    color: #5a6b7d !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    letter-spacing: -0.1px !important;
    font-family: inherit !important;
}

.form-section {
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box !important;
}

.form-section:last-of-type,
.form-section.newsletter-section {
    border-bottom: none;
}

.form-section h3 {
    margin: 0 0 14px 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.2px;
}

.form-group {
    margin-bottom: 4px;
    margin-top: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0;
    width: 100%;
    box-sizing: border-box !important;
}

/* Reduce spacing before submit: last form-section should be tighter */
.pay-yar-payment-form .form-section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* آخرین فرم‌گروپ (textarea) بدون فاصله تا دکمه پرداخت */
.pay-yar-payment-form .form-section:last-of-type .form-group:last-of-type {
    margin-bottom: 0 !important;
}

/* فاصله بین textarea و دکمه پرداخت حداقل */
.pay-yar-payment-form .form-actions {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Form row: two columns (name + phone) */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 !important;
    padding: 0;
    width: 100%;
    box-sizing: border-box !important;
}

.form-col {
    flex: 0 0 calc(50% - 8px);
    width: calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

@media (max-width: 700px) {
    .form-row {
        flex-direction: column;
        justify-content: flex-start;
    }

    .form-col {
        flex: 0 0 100%;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 12px;
    }

    .form-col:last-child {
        margin-bottom: 0;
    }
}

/* Standardized styles moved to common label definition above */

.form-control {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4px 10px;
    border: 1px solid #e1e4e8;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px !important;
    color: #1f2937;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box !important;
}

input.form-control,
textarea.form-control {
    font-size: 13px !important;
}

.form-control:focus {
    outline: none;
    border-color: rgba(91, 63, 255, 0.6);
    box-shadow: 0 8px 24px rgba(91, 63, 255, 0.08);
    background: #fff;
}

.form-control::placeholder {
    color: #aaa;
}

.pay-yar-payment-wrapper textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Amount Summary */
.amount-summary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 255, 0.9));
    padding: 22px;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 40, 0.04);
    margin-bottom: 22px;
}

/* Header card at top of form - improved layout */
.pay-yar-header-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: linear-gradient(90deg, rgba(91, 63, 255, 0.12), rgba(255, 90, 46, 0.06)) !important;
    border-radius: 3px !important;
    padding: 2px 10px 2px 0px !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(91, 63, 255, 0.1) !important;
    gap: 15px !important;
}

.header-main-info {
    display: flex !important;
    flex-direction: row !important;
    /* align-items: center !important; */
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
    height: 100%;
}

.pay-yar-header-card .cup-icon {
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pay-yar-header-card .cup-icon img,
.pay-yar-header-card .cup-icon lottie-player,
.pay-yar-header-card .cup-icon .coffee-emoji {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.pay-yar-header-card .cup-icon .coffee-emoji {
    font-size: 24px !important;
    line-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pay-yar-header-card .header-texts {
    display: block !important;
    /* flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important; */
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
}

.pay-yar-header-card .header-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.pay-yar-header-card .header-sub {
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    color: #6b7280 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.header-amount-section {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.pay-yar-header-card .header-amount {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pay-yar-header-card .amount-label {
    font-size: 14px !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    margin: 0 !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.pay-yar-header-card .amount-value-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    color: var(--primary) !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.pay-yar-header-card .pay-yar-final-amount {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.pay-yar-header-card .currency-symbol {
    font-size: 12px !important;
    font-weight: 600 !important;
    opacity: 0.9 !important;
    margin: 0 !important;
}

/* Header Range Input - نصف اندازه */
.header-range-section {
    margin-top: -15px;
    margin-bottom: -20px;
    background: linear-gradient(90deg, rgba(91, 63, 255, 0.08), rgba(255, 90, 46, 0.06));
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid rgba(91, 63, 255, 0.1);
    height: 26px;
}

.header-range-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    justify-content: flex-start !important;
    direction: ltr;
    /* ensure slider runs left-to-right */
}

.range-count {
    font-size: 10px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.range-count.small {
    font-size: 9px;
    color: #6b7280;
}

.pay-yar-range-count {
    min-width: 16px;
    text-align: center;
    background: linear-gradient(135deg, #5B3FFF 0%, #FF5A2E 100%);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 10px;
}

.pay-yar-header-range-input,
.header-range-input {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(91, 63, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.pay-yar-header-range-input::-webkit-slider-thumb,
.header-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B3FFF 0%, #FF5A2E 100%);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(91, 63, 255, 0.3);
    border: 1px solid white;
}

.pay-yar-header-range-input::-moz-range-thumb,
.header-range-input::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B3FFF 0%, #FF5A2E 100%);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(91, 63, 255, 0.3);
    border: 1px solid white;
}

/* Quantity control style to resemble slider bar */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(250, 250, 255, 0.8), rgba(255, 255, 255, 0.95));
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 40, 0.04);
}

.quantity-control .quantity-input {
    width: 56px;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    font-weight: 700;
    text-align: center;
}

/* Orange primary button like design */
.pay-yar-submit-btn {
    background: linear-gradient(180deg, #ff9f3c 0%, #ff7a2e 100%);
    box-shadow: 0 10px 30px rgba(255, 122, 46, 0.28);
    color: white;
}

.pay-yar-submit-btn .btn-icon {
    font-size: 20px;
}

/* Make sure themed coffee cards do not show in compact mode */
.pay-yar-payment-form .pay-yar-coffees-container,
.pay-yar-payment-form .pay-yar-coffee-item {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.04);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    font-weight: 600;
    color: var(--muted);
}

.summary-item strong {
    color: var(--primary);
    font-size: 16px;
    min-width: 150px;
    text-align: left;
}

.summary-item input.form-control {
    margin: 0;
    flex: 1;
    margin-left: 10px;
    padding: 10px 15px;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 15px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid rgba(17, 24, 39, 0.08);
    margin-top: 12px;
}

.summary-total span:first-child {
    color: #111827;
}

.summary-total strong {
    color: var(--primary);
    font-size: 32px;
}

.required {
    color: #ff6b6b;
    margin-left: 4px;
}

.optional {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

/* Newsletter */
.newsletter-section {
    margin-bottom: 30px !important;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
    user-select: none;
    font-size: 13px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-left: 12px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label span {
    flex: 1;
}

/* Submit Button */
.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

.pay-yar-submit-btn {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, #5B3FFF 0%, #FF5A2E 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 8px 24px rgba(91, 63, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pay-yar-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 45px rgba(255, 90, 46, 0.36);
    filter: brightness(1.08);
}

.pay-yar-submit-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    flex: 1;
}

/* ========== استایل فرم بر اساس تم قهوه (data-theme روی wrapper) ========== */

/* تم: تاریک مدرن */
.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-payment-form {
    background: linear-gradient(135deg, #2a2a3e 0%, #16213e 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-header-card {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-header-card .header-texts .header-title,
.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-header-card .header-texts .header-sub {
    color: #fff;
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-header-card .header-right .header-amount {
    background: rgba(255, 107, 107, 0.25);
    color: #ff6b6b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .header-range-section {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-range-count {
    background: rgba(255, 107, 107, 0.4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-header-range-input,
.pay-yar-payment-wrapper[data-theme="modern-dark"] .header-range-input {
    background: rgba(255, 255, 255, 0.15);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-header-range-input::-webkit-slider-thumb,
.pay-yar-payment-wrapper[data-theme="modern-dark"] .header-range-input::-webkit-slider-thumb {
    background: #ff6b6b;
    border-color: rgba(255, 255, 255, 0.3);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-header-range-input::-moz-range-thumb,
.pay-yar-payment-wrapper[data-theme="modern-dark"] .header-range-input::-moz-range-thumb {
    background: #ff6b6b;
    border-color: rgba(255, 255, 255, 0.3);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] label,
.pay-yar-payment-wrapper[data-theme="modern-dark"] .form-group label {
    color: rgba(255, 255, 255, 0.9) !important;
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .form-section h3 {
    color: #fff;
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .form-control {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-submit-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.35);
}

.pay-yar-payment-wrapper[data-theme="modern-dark"] .pay-yar-submit-btn:hover {
    box-shadow: 0 16px 40px rgba(255, 107, 107, 0.45);
}

/* تم: نیمه‌شب */
.pay-yar-payment-wrapper[data-theme="midnight"] .pay-yar-payment-form {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pay-yar-payment-wrapper[data-theme="midnight"] .pay-yar-header-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.pay-yar-payment-wrapper[data-theme="midnight"] .pay-yar-header-card .header-texts .header-title,
.pay-yar-payment-wrapper[data-theme="midnight"] .pay-yar-header-card .header-texts .header-sub {
    color: #fff;
}

.pay-yar-payment-wrapper[data-theme="midnight"] .pay-yar-header-card .header-right .header-amount {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.pay-yar-payment-wrapper[data-theme="midnight"] .header-range-section {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.pay-yar-payment-wrapper[data-theme="midnight"] .pay-yar-range-count {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}

.pay-yar-payment-wrapper[data-theme="midnight"] label,
.pay-yar-payment-wrapper[data-theme="midnight"] .form-group label {
    color: rgba(255, 255, 255, 0.9) !important;
}

.pay-yar-payment-wrapper[data-theme="midnight"] .form-section h3 {
    color: #fff;
}

.pay-yar-payment-wrapper[data-theme="midnight"] .form-control {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pay-yar-payment-wrapper[data-theme="midnight"] .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.pay-yar-payment-wrapper[data-theme="midnight"] .form-control:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.pay-yar-payment-wrapper[data-theme="midnight"] .pay-yar-submit-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* RTL Support */
body[dir="rtl"] .pay-yar-coffees-container {
    direction: rtl;
}

body[dir="rtl"] .pay-yar-payment-form {
    direction: rtl;
}

body[dir="rtl"] .quantity-control {
    flex-direction: row-reverse;
}

body[dir="rtl"] .summary-item {
    flex-direction: row-reverse;
}

body[dir="rtl"] .summary-item input.form-control {
    margin-left: 0;
    margin-right: 10px;
}

body[dir="rtl"] .summary-total {
    flex-direction: row-reverse;
}

body[dir="rtl"] .checkbox-label {
    flex-direction: row-reverse;
}

body[dir="rtl"] .checkbox-label input[type="checkbox"] {
    margin-left: 0;
    margin-right: 12px;
}

body[dir="rtl"] .pay-yar-submit-btn {
    flex-direction: row-reverse;
}

/* Quick Order Card Styles */
.pay-yar-quick-order-container {
    max-width: 420px;
    margin: 20px auto;
}

.quick-order-card {
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(18, 25, 40, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-order-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(18, 25, 40, 0.12);
}

.quick-order-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.qo-icon {
    font-size: 44px;
    min-width: 44px;
    text-align: center;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(16, 24, 40, 0.08));
}

.qo-info {
    flex: 1;
}

.qo-info h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.qo-info p {
    margin: 0 0 10px 0;
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.4;
}

.qo-info .price {
    font-size: 16px;
    font-weight: 700;
}

.qo-info .price strong {
    font-size: 18px;
}

.quick-order-range {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 16px;
}

.range-header-compact {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    justify-content: center !important;
}

.range-header-compact .range-label {
    font-weight: 600;
    font-size: 13px;
}

.range-header-compact .range-value-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #5B3FFF 0%, #FF5A2E 100%);
    color: white;
    border-radius: 8px;
    padding: 4px 10px;
    box-shadow: 0 4px 12px rgba(91, 63, 255, 0.25);
}

.range-header-compact .range-unit {
    font-weight: 500;
    font-size: 12px;
    opacity: 0.8;
}

.qo-range-input {
    width: 100%;
    height: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 12px 0;
    cursor: pointer;
}

.qo-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B3FFF 0%, #FF5A2E 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(91, 63, 255, 0.3);
    border: 2px solid white;
    transition: all 0.2s ease;
}

.qo-range-input::-webkit-slider-thumb:hover {
    width: 26px;
    height: 26px;
    box-shadow: 0 6px 16px rgba(91, 63, 255, 0.4);
}

.qo-range-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B3FFF 0%, #FF5A2E 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(91, 63, 255, 0.3);
    border: 2px solid white;
    transition: all 0.2s ease;
}

.range-total-compact {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.qo-total-price {
    direction: ltr;
    font-size: 16px;
    min-width: 80px;
    text-align: center;
}

@media (max-width: 600px) {
    .pay-yar-quick-order-container {
        max-width: 100%;
        padding: 0 16px;
    }

    .quick-order-card {
        padding: 16px;
    }

    .quick-order-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .qo-icon {
        font-size: 48px;
        min-width: 48px;
    }

    .qo-info h3 {
        font-size: 16px;
    }

    .qo-info p {
        font-size: 12px;
    }
}


/* Responsive */
@media (max-width: 900px) {
    .pay-yar-coffees-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
        padding: 10px;
    }

    .pay-yar-payment-form {
        padding: 30px;
    }

    .form-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .pay-yar-coffees-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pay-yar-payment-form {
        padding: 20px;
    }

    .pay-yar-coffee-item {
        padding: 0 !important;
    }

    .coffee-item-inner {
        padding: 25px 15px;
    }

    .pay-yar-coffee-item .coffee-icon {
        font-size: 60px;
    }

    .pay-yar-coffee-item h3 {
        font-size: 20px;
    }

    .pay-yar-coffee-item .price {
        font-size: 24px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 16px;
    }

    .pay-yar-submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}