/**
 * Smart Popup Checkout - Frontend Styles
 */
 @import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@100..800&display=swap');

 #spc-popup-overlay,
 #spc-popup-overlay * {
     font-family: 'Anek Bangla', sans-serif !important;
 }
 
 #spc-popup-overlay h1,
 #spc-popup-overlay h2,
 #spc-popup-overlay h3,
 #spc-popup-overlay h4,
 #spc-popup-overlay button,
 #spc-popup-overlay input,
 #spc-popup-overlay textarea,
 #spc-popup-overlay select {
     font-family: 'Anek Bangla', sans-serif !important;
 }

label {
    font-family: 'Anek Bangla';
}
.spc-order-summary {
    font-family: 'Anek Bangla';
}
.spc-submit-section {
    text-align: center !important;
}

.spc-trust-note {
    text-align: center !important;
}

.spc-delivery-section {
    font-family: 'Anek Bangla';
}
button.spc-buy-now-button {
    font-family: 'Anek Bangla';
}



/* Buy Now Button */
.spc-buy-now-button {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
}

.spc-buy-now-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.spc-buy-now-button:active {
    transform: translateY(0);
}

/* Popup Overlay */
.spc-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    overflow-y: auto;
    padding: 20px;
    animation: spcFadeIn 0.3s ease;
}

.spc-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup Modal */
.spc-popup-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: spcSlideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

/* Popup Header */
.spc-popup-header {
    position: relative;
    padding: 25px 30px;
    color: #ffffff;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.spc-popup-title {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 700;
}

.spc-popup-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.spc-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spc-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Popup Body */
.spc-popup-body {
    padding: 30px;
}

/* Loading State */
.spc-popup-loading {
    text-align: center;
    padding: 60px 30px;
}

.spc-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: spcSpin 1s linear infinite;
    margin: 0 auto 20px;
}

.spc-loading-text {
    font-size: 16px;
    color: #666;
}

/* Product Summary */
.spc-product-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.spc-product-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.spc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spc-product-details {
    flex: 1;
}

.spc-product-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.spc-product-price {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.spc-product-price del {
    margin-right: 10px;
    font-size: 16px;
    color: #999;
}

/* Quantity Selector */
.spc-quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spc-quantity-selector label {
    font-weight: 600;
    color: #333;
}

.spc-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.spc-qty-minus,
.spc-qty-plus {
    width: 35px;
    height: 35px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.spc-qty-minus:hover,
.spc-qty-plus:hover {
    background: #e0e0e0;
}

.spc-quantity-input {
    width: 60px;
    height: 35px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}



.spc-delivery-section h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.spc-delivery-section,
.spc-form-field 
.spc-delivery-zone {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 0px;
   
    border-radius: 5px;
    font-size: 15px;
   
}

.spc-delivery-zone:focus {
    outline: none;
    border-color: #28a745;
    background: #ffffff;
}

/* Checkout Form */
.spc-checkout-form {
    margin-bottom: 25px;
}

.spc-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.spc-form-field {
    display: flex;
    flex-direction: column;
}

.spc-field-full {
    width: 100%;
}

.spc-field-half {
    width: calc(50% - 7.5px);
}

.spc-form-field label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.spc-required {
    color: #dc3545;
    margin-left: 3px;
}

.spc-input,
.spc-textarea,
.spc-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.spc-input:focus,
.spc-textarea:focus,
.spc-select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.spc-textarea {
    resize: vertical;
    min-height: 80px;
}

.spc-field-error {
    display: none;
    margin-top: 5px;
    font-size: 13px;
    color: #dc3545;
}

.spc-form-field.error .spc-field-error {
    display: block;
}

.spc-form-field.error .spc-input,
.spc-form-field.error .spc-textarea,
.spc-form-field.error .spc-select {
    border-color: #dc3545;
}

/* Payment Methods */
.spc-payment-methods {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.spc-payment-methods h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.spc-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spc-payment-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spc-payment-option:hover {
    border-color: #28a745;
    background: #f0fff4;
}

.spc-payment-option input[type="radio"] {
    margin-right: 10px;
}

.spc-payment-option input[type="radio"]:checked + span {
    font-weight: 600;
}

/* Order Summary */
.spc-order-summary {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.spc-order-summary h4 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.spc-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.spc-summary-row span:first-child {
    color: #666;
}

.spc-summary-row span:last-child {
    font-weight: 600;
    color: #333;
}

.spc-discount-row span:last-child {
    color: #28a745;
}

.spc-total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 18px;
}

.spc-total-row span {
    font-weight: 700;
}

.spc-total-row span:last-child {
    color: #28a745;
    font-size: 20px;
}

/* Trust Note */
.spc-trust-note {
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #e7f9ed;
    border-left: 4px solid #28a745;
    border-radius: 5px;
}

.spc-trust-note p {
    margin: 0;
    font-size: 14px;
    color: #155724;
}

/* Submit Section */
.spc-submit-section {
    margin-top: 20px;
}

.spc-submit-order {
    width: 100%;
    padding: 16px 30px;
    /* Background is controlled by plugin settings (inline/custom CSS). */
    background: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.spc-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.spc-submit-order:active {
    transform: translateY(0);
}

.spc-submit-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spc-submit-order.loading {
    position: relative;
    color: transparent;
}

.spc-submit-order.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spcSpin 0.8s linear infinite;
}

/* Success State */
.spc-success-state {
    text-align: center;
    padding: 40px 30px;
}

.spc-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spcSuccessBounce 0.6s ease;
}

.spc-success-icon::before {
    content: '✓';
    font-size: 48px;
    color: #ffffff;
    font-weight: bold;
}

.spc-success-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

.spc-success-message {
    margin: 0 0 20px;
    font-size: 16px;
    color: #666;
}

.spc-order-number {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
}

/* Animations */
@keyframes spcFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spcSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spcSuccessBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
	.spc-product-summary {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .spc-product-image {
        width: 100px !important;
        height: 100px !important;
        flex-shrink: 0 !important;
    }

    .spc-product-details {
        flex: 1 !important;
        min-width: 0 !important;
    }
	
    .spc-popup-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .spc-popup-header {
        border-radius: 0;
    }
    
    .spc-popup-body {
        padding: 20px;
    }
    
    
    
    .spc-field-half {
        width: 100%;
    }
    
    .spc-popup-title {
        font-size: 20px;
    }
    
    .spc-popup-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .spc-buy-now-button {
        max-width: 100%;
    }
    
    .spc-popup-header {
        padding: 20px;
    }
    
    .spc-popup-body {
        padding: 15px;
    }
    
    .spc-product-title {
        font-size: 16px;
    }
    
    .spc-product-price {
        font-size: 18px;
    }
	button.spc-buy-now-button {
    padding: 8px 30px;
	}
}
.spc-coupon-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #fffaf0;
    border: 1px solid #f3d18a;
    border-radius: 8px;
}

.spc-coupon-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.spc-coupon-row {
    display: flex;
    gap: 8px;
}

#spc-coupon-input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#spc-apply-coupon {
    padding: 11px 16px;
    border: none;
    border-radius: 6px;
    background: #efa501;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

#spc-coupon-message {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}
.spc-header-badge {
    font-size: 13px;
    text-align: center;
    padding-top: 7px;
    color: rgba(255,255,255,.95);
    font-weight: 500;
    line-height: 1.4;
}
.elementor-shortcode:has(.spc-buy-now-button) {
    width: 100%;
}

.elementor-widget-shortcode:has(.spc-buy-now-button) {
    width: 100%;
}
.spc-manual-payment-box {
    margin: -4px 0 12px 28px;
    padding: 14px;
    background: #fff8e8;
    border: 1px solid #f1d08a;
    border-radius: 8px;
}

.spc-manual-payment-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.spc-manual-payment-info strong {
    color: #222;
}

.spc-manual-payment-info span {
    font-weight: 700;
    color: #d97706;
}

.spc-manual-payment-box p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b4e16;
}

.spc-transaction-id {
    width: 100%;
    margin-top: 6px;
}
.spc-cart-summary {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

.spc-cart-summary .spc-cart-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    box-sizing: border-box !important;
}

.spc-cart-summary .spc-cart-item-image {
    flex: 0 0 75px !important;
}

.spc-cart-summary .spc-cart-item-details {
    flex: 1 !important;
}
.spc-cart-summary {
    display: block !important;
}

.spc-cart-item {
    position: relative;
    display: flex !important;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 38px 12px 12px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #ffffff;
}

.spc-cart-item-image img {
    width: 75px !important;
    height: 75px !important;
    object-fit: cover;
    border-radius: 8px;
}

.spc-cart-item-details {
    flex: 1;
}

.spc-cart-item-title {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.spc-cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 4px;
}

.spc-cart-item-qty {
    font-size: 13px;
    color: #444;
}

.spc-cart-remove-item {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 1px solid #ef4444;
    border-radius: 50%;
    background: #fff;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
}

.spc-cart-item-qty-wrap{
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:8px;
}

.spc-cart-qty-btn{
    width:28px;
    height:28px;
    border:1px solid #e11d48;
    background:#fff;
    color:#e11d48;
    border-radius:6px;
    cursor:pointer;
    font-size:16px;
    font-weight:700;
}

.spc-cart-qty-input{
    width:55px !important;
    height:28px;
    text-align:center;
    border:1px solid #ddd !important;
    border-radius:6px !important;
    padding:0 !important;
}
button.spc-cart-remove-item {
    padding: 0rem 1rem !important;
}

button.spc-cart-qty-btn.spc-cart-qty-plus {
    padding: 0rem 1rem !important;
}

button.spc-cart-qty-btn.spc-cart-qty-minus {
    padding: 0rem 1rem !important;
}
.spc-discount-row {
    color: #16a34a !important;
    font-weight: 700 !important;
}

.spc-discount-note {
    margin: 8px 0 12px;
    padding: 10px 12px;
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #15803d;
    font-size: 14px;
    font-weight: 700;
}
@media (max-width: 640px) {

    .spc-cart-summary {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .spc-cart-summary .spc-cart-item {
        display: grid !important;
        grid-template-columns: 90px 1fr 32px !important;
        gap: 12px !important;
        align-items: start !important;
        padding: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .spc-cart-summary .spc-cart-item-image img {
        width: 90px !important;
        height: 90px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .spc-cart-summary .spc-cart-item-title {
        font-size: 16px !important;
        line-height: 1.35 !important;
        margin: 0 0 6px !important;
    }

    .spc-cart-item-qty-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: 8px !important;
    }

    .spc-cart-qty-input {
        width: 46px !important;
        height: 30px !important;
        text-align: center !important;
        flex: 0 0 46px !important;
    }

    .spc-cart-qty-btn {
        width: 30px !important;
        height: 30px !important;
        flex: 0 0 30px !important;
    }

    .spc-cart-remove-item {
        position: static !important;
        width: 30px !important;
        height: 30px !important;
        flex: 0 0 30px !important;
        margin-top: 0 !important;
    }
}