/********************************* 
Click Shop Modal Style and Colors 
*********************************/


/* Modal Overlay */
#csQuickOrderModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    z-index: 99999;
}

/* Modal Box */
.cs-modal-content {
    background-color: #fff;
    margin: 4% auto;
    padding: 30px 20px;
    border-radius: 8px;
    width: 90%;
    height: auto;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.cs-modal-content .cs-icon {
    font-size: 25px;
}

/* Close Button */
.cs-modal-content .cs-close {
    top: 10px;
    right: 15px;
}

/* Form Elements */
#csQuickCheckoutForm {
    box-sizing: border-box;
}

#csQuickCheckoutForm .clickshop-form-group input {
    padding: 15px;
}

.cs-modal-heading {
    text-align: center;
    border-bottom: 1px solid #a5a5a544;
    padding-bottom: 10px;
    color: var(--primary-color);
}

#csQuickCheckoutForm select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
}

#csApplyCouponBtn {
    padding: 16px 20px;
    border: none;
    border-radius: 0px 3px 3px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}


@keyframes PlaceOrderButtonCsShake {
    0% {
        transform: rotate(0deg);
    }

    3% {
        transform: rotate(2deg);
    }

    6% {
        transform: rotate(-2deg);
    }

    9% {
        transform: rotate(2deg);
    }

    12% {
        transform: rotate(-1deg);
    }

    15% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
} 

#csPlaceOrderBtn {
    margin-top: 20px;
    transition: 0.3s;
    animation: PlaceOrderButtonCsShake 3s ease-in-out infinite;
}

#csPlaceOrderBtn:disabled {
    animation: none !important;
}

/* Fade-in animation */
.cs-modal-preloader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}


.cs-product-summary-cs-modal {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    margin-top: 20px;
    align-items: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
}

.cs-product-image-container {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.cs-product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cs-product-variation {
    margin-bottom: 5px;
}

/* Quantity controls inside product image (single product modal) */
.cs-product-summary-cs-modal .cs-qty-controls {
    width: fit-content;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 5;
}

.cs-product-summary-cs-modal .cs-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 25px;
    border-radius: 4px;
    border: none;
    background: #fff;
    color: #333;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s ease, transform .06s ease;
}
.cs-product-summary-cs-modal .cs-qty-btn:hover {
    background: #f2f2f2;
    transform: translateY(-1px);
    color: var(--primary-color);
}
.cs-qty-btn:active { transform: translateY(0); }

.cs-product-summary-cs-modal .cs-qty-controls .cs-product-info-quantity-cs {
    position: static;
    display: inline-block;
    margin: 0 2px;
    background: transparent;
    border: none;
    padding: 0 6px;
    font-size: 13px;
    color: #222;
}

/* Multi-product list controls */
.cs-multi-product-item {
    position: relative;
}
.cs-multi-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}
.cs-multi-controls .cs-multi-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    width: fit-content;
}
.cs-multi-controls .cs-multi-qty-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-weight: 700;
    padding: 0;
}
.cs-multi-controls .cs-multi-qty-controls button:hover { color: var(--primary-color); background: #f6f6f6;}
.cs-multi-controls .cs-multi-qty-input {
    width: 48px;
    height: auto;
    text-align: center;
    border: none;
    padding: 0 6px;
    text-align: center;
    font-size: 14px;
}
.cs-multi-product-item button.cs-remove-product-btn {
    top: 5px;
    right: 0px;
    background: transparent;
    border-radius: 50%;
    padding: 1px 2px;
    color: #847a7a;
    position: absolute;
    border: none;
}
.cs-multi-product-item button.cs-remove-product-btn:hover { color: red; background: transparent; }

/* Ensure multi price sits to the right */
.cs-multi-price { margin-left: 6px; font-weight: 600; color: var(--primary-color); }

/* Small responsive tweaks */
@media (max-width: 480px) {
    .cs-qty-controls { top: 6px; left: 6px; gap: 4px; }
    .cs-qty-btn { width: 26px; height: 26px; }
    .cs-multi-qty-input { width: 42px; }
}

.cs-product-info {
    flex-grow: 1;
}

.cs-product-info h2 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
}

.cs-product-price {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-color);
}

.cs-product-info-title-cs {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-single-shipping-method .cs-shipping-method-name {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
}

.cs-shipping-container {
    padding-top: 10px;
}

.cs-product-info-quantity-cs {
    background: #ededed;
    padding: 0px 7px;
    border-radius: 50%;
    font-size: 13px;
    border: 1px solid #4f4f4f;
    color: var(--primary-color);
    margin-left: 10px;
    font-weight: 700;
    position: absolute;
    top: 5px;
    left: -5px;
}


.cs-quick-order-price-summary {
    margin: 20px 0;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 5px;
}

.cs-quick-order-price-summary .cs-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
}

.cs-quick-order-price-summary .cs-price-row.cs-total-price {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.cs-quick-order-price-summary .cs-price-label {
    color: #555;
}

.cs-quick-order-price-summary .cs-price-amount {
    color: #000;
    font-family: inherit;
}



/* Skeleton Loader Styles */
.cs-skeleton-loader {
    position: relative;
    min-height: 300px;
}

.cs-skeleton-shipping-radio {
    margin-bottom: 15px;
}

.cs-skeleton-radio-wrapper {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.cs-skeleton-radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
}

.cs-skeleton-radio-text {
    height: 16px;
    flex: 1;
}

.cs-skeleton-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cs-skeleton-placeholder {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cs-skeleton-loader.loading .cs-skeleton-content {
    opacity: 0.3;
    pointer-events: none;
}

.cs-skeleton-loader.loading .cs-skeleton-placeholder {
    display: block;
    opacity: 1;
}

.cs-skeleton-loader:not(.loading) .cs-skeleton-placeholder {
    display: none;
    opacity: 0;
}

.cs-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: cs-skeleton-loading 1.4s ease infinite;
    border-radius: 4px;
}

@keyframes cs-skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* Skeleton layout styles */
.cs-product-summary-skeleton {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cs-skeleton-image-container {
    position: relative;
}

.cs-skeleton-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.cs-skeleton-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.cs-skeleton-product-info {
    flex: 1;
}

.cs-skeleton-title {
    height: 20px;
    margin-bottom: 8px;
}

.cs-skeleton-form-group {
    margin-bottom: 15px;
}

.cs-skeleton-input {
    height: 40px;
    margin-bottom: 5px;
}

.cs-skeleton-button {
    height: 36px;
}

.cs-skeleton-shipping,
.cs-skeleton-payment {
    margin-bottom: 15px;
}

.cs-skeleton-select {
    height: 40px;
}

.cs-skeleton-price-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cs-skeleton-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cs-skeleton-price-row:last-child {
    margin-bottom: 0;
}


/* Shipping Radio Button Styles */
.cs-shipping-radio-container {
    margin-top: 10px;
}

.cs-shipping-radio-wrapper {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.cs-shipping-radio-input {
    display: none;
}

.cs-shipping-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cs-shipping-radio-input:checked+.cs-shipping-radio-label {
    background: #e8f4ff;
    border-color: var(--primary-color, #06a345ff);
    box-shadow: 0 0 0 1px var(--primary-color, #06a345ff);
}

.cs-shipping-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.cs-shipping-radio-input:checked+.cs-shipping-radio-label .cs-shipping-radio-custom {
    border-color: var(--primary-color, #06a345ff);
    background-color: var(--primary-color, #06a345ff);
}

.cs-shipping-radio-input:checked+.cs-shipping-radio-label .cs-shipping-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.cs-shipping-radio-text {
    font-size: 15px;
    font-weight: 500;
    color: #495057;
    flex: 1;
}

.cs-shipping-radio-input:checked+.cs-shipping-radio-label .cs-shipping-radio-text {
    color: var(--primary-color, #06a345ff);
}

.cs-shipping-radio-label:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

/* Shipping Skeleton for Radio */
.cs-skeleton-shipping-radio {
    margin-bottom: 15px;
}

.cs-skeleton-radio-wrapper {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.cs-skeleton-radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
}

.cs-skeleton-radio-text {
    height: 16px;
    flex: 1;
}

/* Loader */
.cs-quick-order-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: cs-spinner 0.6s linear infinite;
}

@keyframes cs-spinner {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
   .cs-product-info h2 {
        font-size: .8em;
    }
    .cs-product-price {
        font-size: .9em;
    }
}