/* Modern Ezy Checkout Styles */

:root {
    --ezych-primary: #ff6b6b;
    --ezych-text-dark: #2d3436;
    --ezych-text-light: #636e72;
    --ezych-bg-light: #f5f6fa;
    --ezych-border: #dfe6e9;
    --ezych-radius: 8px;
    --ezych-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --ezych-font-family: 'Inter', sans-serif;
}

/* Modal Overlay */
.ezych-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--ezych-overlay-bg);
    backdrezych-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ezych-font-family);
}

/* Modal Content */
.ezych-modal-content {
    background-color: var(--ezych-modal-content-bg);
    padding: 25px;
    border-radius: var(--ezych-radius);
    width: 95%;
    max-width: 480px;
    position: relative;
    box-shadow: var(--ezych-shadow);
    animation: opSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes opSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.ezych-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #b2bec3;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.ezych-close:hover {
    color: var(--ezych-text-dark);
}

/* Header */
.ezych-modal-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ezych-border);
    padding-bottom: 10px;
}

.ezych-modal-header h2 {
    font-size: 18px;
    margin: 0;
    color: var(--ezych-text-dark);
    font-weight: 700;
}

/* Form Styles */
.ezych-form-group {
    margin-bottom: 15px;
}

.ezych-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
    color: var(--ezych-text-dark);
}

.ezych-form-group label span {
    color: #e74c3c;
}

/* New Input Groups (Icon + Input) */
.ezych-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ezych-border);
    border-radius: var(--ezych-radius);
    background-color: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ezych-input-group:focus-within {
    border-color: #b2bec3;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.ezych-input-icon {
    background-color: #e3e3e3;
    /* Gray background for icon */
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #636e72;
    border-right: 1px solid var(--ezych-border);
    flex-shrink: 0;
}

.ezych-input-group input {
    border: none !important;
    box-shadow: none !important;
    outline: none;
    background: transparent !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    width: 100%;
    font-size: 14px;
    color: var(--ezych-text-dark);
    height: auto !important;
}

/* Shipping Methods */
.ezych-section-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--ezych-text-dark);
    margin-bottom: 8px;
    margin-top: 15px;
}

.ezych-shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.ezych-radio-label {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--ezych-border);
    border-radius: var(--ezych-radius);
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s;
}

.ezych-radio-label:hover {
    border-color: #b2bec3;
}

.ezych-radio-label input {
    margin-right: 10px;
    accent-color: var(--ezych-primary);
}

.ezych-radio-text {
    font-size: 13px;
    color: var(--ezych-text-dark);
    font-weight: 500;
    flex-grow: 1;
}

.ezych-price {
    font-weight: 700;
    font-size: 13px;
    color: var(--ezych-text-dark);
    margin-left: auto;
}

/* Coupon Section (Compact) */
.ezych-coupon-container {
    margin-bottom: 15px;
}

.ezych-coupon-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* Smaller width */
}

.ezych-coupon-section .ezych-coupon-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ezych-coupon-section input {
    border: 1px solid var(--ezych-border) !important;
    border-right: none !important;
    border-radius: var(--ezych-radius) 0 0 var(--ezych-radius) !important;
    padding: 8px 12px !important;
    flex-grow: 1;
    font-size: 13px;
    margin: 0 !important;
}

.ezych-coupon-section button {
    background-color: var(--ezych-secondary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: 0 var(--ezych-radius) var(--ezych-radius) 0;
    font-size: 13px;
    cursor: pointer;
}

/* Order Summary (Single Line) */
.ezych-order-summary {
    background-color: var(--ezych-bg-light);
    border-radius: var(--ezych-radius);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--ezych-border);
}

.ezych-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ezych-product-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
}

.ezych-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ezych-qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--ezych-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.ezych-product-details,
.ezych-product-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ezych-product-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ezych-product-right {
    text-align: right;
}

.ezych-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ezych-text-dark);
    line-height: 1.2;
}

.ezych-product-price {
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}

.ezych-qty-btn {
    padding: 0.3rem .8rem !important;
}

/* Quantity Selector (Compact) */
.ezych-quantity-selector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ezych-qty-btn {
    background: #fff;
    border: 1px solid var(--ezych-border);
    color: var(--ezych-text-dark);
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
}

.ezych-qty-btn:hover {
    background: #f1f2f6;
}

#ezych-qty-display,
#ezych-qty-input {
    border: 1px solid var(--ezych-border);
    background: #fff;
    border-radius: 4px;
    font-weight: 600;
    color: var(--ezych-text-dark);
    margin: 0 5px;
    width: 30px !important;
    height: 25px !important;
    padding: 0 !important;
    text-align: center;
    font-size: .8rem;
}

/* Hide spin buttons */
#ezych-qty-display::-webkit-outer-spin-button,
#ezych-qty-display::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Totals */
.ezych-totals {
    border-top: 1px dashed var(--ezych-border);
    padding-top: 10px;
    margin-bottom: 20px;
}

.ezych-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ezych-text-light);
    margin-bottom: 5px;
}

.ezych-grand-total {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ezych-text-dark);
    align-items: center;
    border-top: 1px dashed var(--ezych-border);
    padding-top: 6px;
    /* Align crossed out price */
}

/* Submit Button */
.ezych-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--ezych-primary);
    color: white;
    border: none;
    border-radius: var(--ezych-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.ezych-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

.ezych-submit-btn small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
}

.ezych-disclaimer-text {
    text-align: center;
    font-size: 10px;
    color: #b2bec3;
    margin-top: 12px;
}

/* Utilities */
.ezych-anim-shake {
    animation: opShake 0.5s infinite;
}

@keyframes opShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Additional attention-seeker animations to match available settings */
.ezych-anim-pulse {
    animation: opPulse 1.2s ease-in-out infinite;
}
@keyframes opPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ezych-anim-bounce {
    animation: opBounce 1.1s ease-out infinite;
}
@keyframes opBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.ezych-anim-swing {
    transform-origin: top center;
    animation: opSwing 1s ease-in-out infinite;
}
@keyframes opSwing {
    20% { transform: rotate(10deg); }
    40% { transform: rotate(-8deg); }
    60% { transform: rotate(6deg); }
    80% { transform: rotate(-4deg); }
    100% { transform: rotate(0deg); }
}

.ezych-anim-tada {
    animation: opTada 1s ease-in-out infinite;
}
@keyframes opTada {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.95) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.05) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.05) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

.ezych-anim-wobble {
    animation: opWobble 1s ease-in-out infinite;
}
@keyframes opWobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-8%) rotate(-2deg); }
    30% { transform: translateX(6%) rotate(2deg); }
    45% { transform: translateX(-4%) rotate(-1.5deg); }
    60% { transform: translateX(3%) rotate(1deg); }
    75% { transform: translateX(-2%) rotate(-0.5deg); }
    100% { transform: translateX(0%); }
}

.ezych-anim-flip {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    animation: opFlip 1.2s ease-in-out infinite;
}
@keyframes opFlip {
    0% { transform: perspective(400px) rotateY(0); }
    50% { transform: perspective(400px) rotateY(180deg); }
    100% { transform: perspective(400px) rotateY(360deg); }
}

.ezych-anim-rubberband {
    animation: opRubberBand 1s ease-in-out infinite;
}
@keyframes opRubberBand {
    0% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.25, 0.75, 1); }
    40% { transform: scale3d(0.75, 1.25, 1); }
    50% { transform: scale3d(1.15, 0.85, 1); }
    65% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.05, 0.95, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

.ezych-anim-jello {
    transform-origin: center;
    animation: opJello 1.2s ease-in-out infinite;
}
@keyframes opJello {
    0% { transform: skew(0deg, 0deg); }
    30% { transform: skew(12deg, -12deg); }
    40% { transform: skew(-10deg, 10deg); }
    50% { transform: skew(8deg, -8deg); }
    65% { transform: skew(-5deg, 5deg); }
    75% { transform: skew(3deg, -3deg); }
    100% { transform: skew(0deg, 0deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .ezych-modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
    }
}
