/**
 * Custom Checkout Styles - 2-Step Process with 2-Column Layout
 * All styles scoped under .checkout2025
 */

.checkout2025 {
/* Payment selection area styling */
#paymentselection {
    min-height: 100px;
}

#paymentselection .alert {
    margin-bottom: 20px;
}

#paymentselection .alert-info {
    background-color: #e0f5fd;
    border-color: #30ade7;
    color: #2899c9;
}

.payment-updating {
    background: #fff3cd;
    color: #856404;
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #ffeaa7;
}

.payment-updating i {
    margin-right: 8px;
}

/* Two-column layout */
#checkout-columns {
    margin-top: 20px;
}

#checkout-left-column {
    min-height: 400px;
}

#checkout-right-column {
    position: sticky;
    top: 20px;
    /*max-height: calc(100vh - 40px);
    overflow-y: auto;*/
}

/* Cart Summary in Right Column */
#checkout-cart-summary {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

#checkout-cart-summary * {
    box-sizing: border-box;
}

#checkout-cart-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
    color: #333;
}

#checkout-cart-summary h3 i {
    color: #5cb85c;
    margin-right: 8px;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
}

.cart-summary-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    flex: 1;
    font-size: 14px;
    padding-right: 10px;
    line-height: 1.4;
}

.cart-item-name a {
    color: #333;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: #5cb85c;
}

.cart-item-quantity {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
    white-space: nowrap;
}

.cart-item-price {
    font-weight: bold;
    font-size: 14px;
    color: #30ade7;
    white-space: nowrap;
}

.cart-summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.cart-summary-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}

.cart-summary-total-row.final {
    font-size: 22px;
    font-weight: bold;
    color: #30ade7;
    padding: 0px 0 0 0;
    /* margin-top: 10px; */
    /* border-top: 2px solid #30ade7; */
}

/* Discount code section styling */
.cart-summary-discount {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid #f0f0f0;
    width: 100%;
    overflow: hidden;
}

.cart-summary-discount label {
    color: #333;
    font-size: 15px;
}

.cart-summary-discount .input-group {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.cart-summary-discount .form-control {
    height: 38px;
    border-right: none;
    font-size: 14px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1 1 auto;
    min-width: 0;
    width: calc(100% - 50px);
    padding: 10px 12px;
    box-sizing: border-box;
}

.cart-summary-discount .input-group-btn {
    flex: 0 0 auto;
    width: 50px;
}

.cart-summary-discount .input-group-btn .btn {
    height: 38px;
    padding: 0 12px;
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: 2px solid #e0e0e0;
    border-left: none;
    min-height: 38px;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.cart-summary-discount .input-group-btn .btn:hover {
    background-color: #5cb85c;
    color: #fff;
    border-color: #5cb85c;
    box-shadow: none;
    transform: none;
}

.cart-summary-discount .input-group-btn .btn i {
    margin: 0;
}

/* Input groups general styling */
.input-group {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
}

.input-group .form-control {
    flex: 1;
    min-width: 0;
}

.input-group-btn {
    display: flex;
    flex-shrink: 0;
}

#discount-feedback {
    min-height: 20px;
}

/* Discount applied section */
#discount-applied {
    animation: slideInDown 0.3s ease;
}

#discount-applied .btn:hover {
    background: #f8f8f8 !important;
    border-color: #d9534f !important;
    color: #d9534f !important;
    transform: scale(1.05);
}

#discount-applied .btn:active {
    transform: scale(0.98);
}

/* Sisäänkanto service section styling */
.cart-summary-sisakanto {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid #f0f0f0;
}

.cart-summary-sisakanto label {
    color: #333;
    font-size: 15px;
}

.cart-summary-sisakanto p {
    line-height: 1.5;
}

.cart-summary-sisakanto p a {
    color: #30ade7;
    text-decoration: none;
}

.cart-summary-sisakanto p a:hover {
    text-decoration: underline;
}

.cart-summary-sisakanto .btn-block {
    height: 38px;
    font-size: 14px;
    font-weight: 600;
}

#sisakanto-feedback {
    min-height: 20px;
}

/* Modern form field styling */
.form-control {
    font-size: 14px;
    padding: 10px 12px;
    height: 38px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    font-weight: 400;
    color: #333;
}

.form-control:hover {
    border-color: #d0d0d0;
    background-color: #fff;
}

.form-control:focus {
    border-color: #5cb85c;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(92, 184, 92, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #999;
    font-weight: 400;
    opacity: 1;
}

/* Textarea styling */
textarea.form-control {
    min-height: 80px;
    height: auto;
    resize: vertical;
    padding: 10px 12px;
}

/* Success state for validated fields */
.form-group.has-success .form-control {
    border-color: #5cb85c;
    background-color: #f1f9f1;
}

.form-group.has-success .form-control:focus {
    box-shadow: 0 0 0 4px rgba(92, 184, 92, 0.15);
}

.form-group.has-error .form-control {
    border-color: #d9534f;
    background-color: #fff5f5;
}

.form-group.has-error .form-control:focus {
    box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.15);
}

/* Label styling */
.control-label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.3px;
}

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

/* Panel improvements */
.panel-smart {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.panel-smart .panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 25px;
}

.panel-smart .panel-heading h3 {
    margin: 0;
    color: #fff;
}

.panel-smart .panel-heading small {
    color: rgba(255,255,255,0.9);
}

/* Checkout sections spacing */
#step-contents {
    margin-top: 0 !important;
}

#step-content-cart-tool,
#step-content-order-info,
#step-content-payment-method {
    margin-bottom: 40px;
}

/* Payment options styling */
#paymentselection {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.payment-option-wrapper {
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    align-self: stretch;
}

.payment-option-panel {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 220px;
}

.payment-option-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.payment-option-panel .panel-body {
    padding: 30px 15px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
}

.payment-option-panel .panel-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 15px 10px;
    font-size: 14px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 0 0 auto;
    line-height: 1.3;
}

.payment-option-panel .panel-footer strong {
    display: block;
    word-wrap: break-word;
}

/* Payment form buttons */
.paymentFormBtn {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.paymentFormBtn img {
    max-width: 100%;
    max-height: 70px;
    height: auto;
    object-fit: contain;
}

/* Ensure payment button images are centered */
.payment-option-panel .panel-body form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Cart table improvements */
.checkout-cart {
    border-radius: 8px;
    overflow: hidden;
}

.checkout-cart thead {
    background: #f8f9fa;
}

.checkout-cart th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #666;
    padding: 15px;
}

.checkout-cart td {
    vertical-align: middle;
    padding: 20px 15px;
}

.checkout-cart tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.checkout-cart tbody tr:hover {
    background: #f8f9fa;
}

/* Quantity input improvements */
.quantity-input {
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
}

.btn-decrease,
.btn-increase {
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-decrease:hover,
.btn-increase:hover {
    background: #5cb85c;
    color: #fff;
    border-color: #5cb85c;
}

/* Discount code section */
.discount-box {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(253, 203, 110, 0.3);
}

.discount-box h5 {
    color: #2d3436;
    font-weight: bold;
}

.discount-box .form-control {
    border: 2px solid #f39c12;
}

.discount-box .btn {
    font-weight: bold;
}

/* Free shipping bar improvements */
.barcontainer {
    background: linear-gradient(90deg, #ff6b6b 0%, #feca57 50%, #5cb85c 100%);
    border-radius: 10px;
    padding: 3px;
    margin: 20px 0;
}

.freeProgress-bar {
    background: #fff;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.plabel {
    font-weight: bold;
    font-size: 14px;
}

/* Responsive improvements */
@media (max-width: 991px) {
    #checkout-right-column {
        position: static;
        margin-top: 30px;
        max-height: none;
    }
    
    #checkout-cart-summary {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .payment-option-wrapper {
        min-width: 50%;
    }
    
    .form-control {
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .cart-summary-item {
        flex-wrap: wrap;
    }
    
    .cart-item-name {
        width: 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .payment-option-wrapper {
        min-width: 100%;
    }
    
    .checkout-cart th:nth-child(2),
    .checkout-cart td:nth-child(2) {
        display: none;
    }
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* E-bill validation styling */
.speech-bubble {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collapse sections styling */
#different-billing-info-collapse {
    padding-top: 15px;
}

/* Modern checkbox and radio buttons */
input[type="checkbox"],
input[type="radio"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #5cb85c;
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    transform: scale(1.1);
}

/* Select dropdown styling */
select.form-control {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.form-control::-ms-expand {
    display: none;
}

/* Order summary table in payment section */
#paymentselection .table {
    margin-top: 20px;
}

#paymentselection .table thead {
    background: #f8f9fa;
}

/* Tooltips */
.tooltip-inner {
    max-width: 300px;
    padding: 10px 15px;
    font-size: 13px;
}

/* Bootstrap-select customization */
.bootstrap-select,
.dropdown.bootstrap-select {
    padding: 0;
    border: none;
}

.bootstrap-select .dropdown-toggle {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    height: 38px;
}

.bootstrap-select .dropdown-toggle:hover {
    border-color: #d0d0d0;
    background-color: #fff;
}

.bootstrap-select.open .dropdown-toggle {
    border-color: #5cb85c;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(92, 184, 92, 0.1);
}

.bootstrap-select .dropdown-toggle:focus {
    outline: none;
    border-color: #5cb85c;
    box-shadow: 0 0 0 0.2rem rgba(92, 184, 92, 0.25);
}

/* Invoice badge styling */
.invoiceExtra {
    animation: pulse 2s infinite;
}

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

/* Sticky elements */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 99;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Improve alert styling */
.alert {
    border-radius: 8px;
    padding: 20px;
    border: none;
}

.alert-danger {
    background: #fee;
    color: #c33;
}

.alert-success {
    background: #efe;
    color: #3c3;
}

.alert-info {
    background: #e0f5fd;
    color: #2899c9;
}

/* Cart row totals */
#cart-row-total td {
    font-size: 18px;
    font-weight: bold;
    padding: 25px 15px;
    background: #f8f9fa;
}

/* Modern Button Styling */
.btn {
    border-radius: 6px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    min-height: 38px;
}

/* Success button */
.btn-success {
    background: #5cb85c;
    color: #fff;
    box-shadow: 0 2px 8px rgba(92, 184, 92, 0.2);
}

.btn-success:hover {
    background: #4cae4c;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(92, 184, 92, 0.35);
    color: #fff;
}

.btn-success:active {
    transform: translateY(0);
}

/* Primary buttons */
.btn-primary {
    background: #30ade7;
    color: #fff;
    box-shadow: 0 2px 8px rgba(48, 173, 231, 0.2);
}

.btn-primary:hover {
    background: #2899c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(48, 173, 231, 0.35);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Default/Secondary button */
.btn-default {
    background: #fff;
    color: #666;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-default:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Block buttons */
.btn-block {
    width: 100%;
    display: block;
}

/* Large buttons */
.btn-lg {
    padding: 11px 24px;
    font-size: 15px;
    min-height: 44px;
}

/* Small buttons */
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    min-height: 32px;
}

/* Clear floats */
.clear {
    clear: both;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Panel body padding */
.panel-body {
    padding: 20px;
    padding-top: 0;
}

/* Small text improvements */
small, .small {
    font-size: 85%;
    opacity: 0.8;
}

/* Link styling */
a {
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: none;
    color: #5cb85c;
}

/* Form label improvements */
.control-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.control-label .red {
    color: #d9534f;
}

/* Make email and phone input stand out more */
#email,
#billingEmail,
#phone {
    border: 2px solid #ddd;
}

#email:focus,
#billingEmail:focus,
#phone:focus {
    border-color: #5cb85c;
}

/* Progress bar for free shipping */
.barcontainer .pinfo {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

/* Cart Item Controls - Quantity Edit & Remove */
.cart-summary-item {
    position: relative;
    transition: background-color 0.2s ease;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
    margin-left: -10px;
    margin-right: -10px;
}

.cart-summary-item:hover {
    background-color: #f9f9f9;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-name {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    padding-right: 10px;
}

.cart-item-name a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.cart-item-name a:hover {
    color: #5cb85c;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cart-item-quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: transparent;
}

.cart-item-quantity-control .btn-decrease,
.cart-item-quantity-control .btn-increase {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 3px;
    font-size: 11px;
    min-height: 24px;
    line-height: 1;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-item-quantity-control .btn-decrease:hover,
.cart-item-quantity-control .btn-increase:hover {
    background: #5cb85c;
    color: #fff;
    border-color: #5cb85c;
    transform: scale(1.05);
}

.cart-item-quantity-control .btn-decrease:active,
.cart-item-quantity-control .btn-increase:active {
    transform: scale(0.95);
}

.cart-item-quantity-control .quantity-input {
    width: 35px;
    height: 24px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding: 0;
    background: #f8f9fa;
    min-height: 24px;
    -moz-appearance: textfield;
}

.cart-item-quantity-control .quantity-input::-webkit-inner-spin-button,
.cart-item-quantity-control .quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-quantity-control .quantity-input:focus {
    outline: none;
    background: #fff;
    border-color: #5cb85c;
    box-shadow: none;
}

.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.cart-item-price .item-total {
    font-weight: 700;
    font-size: 15px;
    color: #30ade7;
    line-height: 1.2;
}

.cart-item-price .item-unit-price {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.cart-item-remove {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: #fff;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 13px;
    padding: 0;
    border: 1px solid #e0e0e0;
    margin-left: 10px;
}

.cart-item-remove:hover {
    background: #d9534f;
    color: #fff;
    border-color: #d9534f;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 2px 8px rgba(217, 83, 79, 0.3);
}

.cart-item-remove:active {
    transform: rotate(90deg) scale(0.95);
}

/* Cart Alert Messages */
.cart-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.3s ease;
}

.cart-alert i {
    font-size: 16px;
}

.cart-alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.cart-alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive cart controls */
@media (max-width: 768px) {
    .cart-item-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .cart-item-quantity-control {
        justify-content: center;
    }
    
    .cart-item-price {
        align-items: center;
        text-align: center;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .cart-summary-item {
        padding-right: 50px;
    }
}

@media (max-width: 480px) {
    .cart-item-quantity-control .btn-decrease,
    .cart-item-quantity-control .btn-increase {
        width: 28px;
        height: 28px;
        min-height: 28px;
        font-size: 13px;
    }
    
    .cart-item-quantity-control .quantity-input {
        width: 40px;
        height: 28px;
        min-height: 28px;
        font-size: 14px;
    }
    
    .cart-item-remove {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* Loading state for cart items */
.cart-summary-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

.cart-summary-item.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #5cb85c;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

/* Empty cart state */
#cart-summary-items .text-muted {
    color: #999;
    text-align: center;
    padding: 40px 20px;
}

#cart-summary-items .text-muted .fa-shopping-cart {
    font-size: 48px;
    opacity: 0.3;
    display: block;
    margin: 0 auto 15px;
}

/* Email and Phone Inputs */
#email, #billingEmail, #phone {
    border: 1px solid #ddd;
}

/* ========================================
   FREE SHIPMENT PROGRESS BAR AS DIVIDER
   ======================================== */

.free-shipment-progress-divider {
    padding: 0 0 12px 0;
    margin: 8px 0;
}

.progress-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.progress-message i {
    color: #30ade7;
    font-size: 14px;
    animation: truck-bounce 2s ease-in-out infinite;
}

@keyframes truck-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.progress-message strong {
    color: #30ade7;
    font-weight: 600;
}

.progress-track {
    position: relative;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: visible;
}

.progress-fill {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, #30ade7 0%, #5bc8f5 50%, #30ade7 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shine 2.5s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

.progress-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
    cursor: help;
    z-index: 2;
}

.progress-marker span {
    line-height: 1;
}

.progress-marker i {
    font-size: 10px;
    animation: none;
}

.progress-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: #30ade7;
    color: #30ade7;
    box-shadow: 0 2px 8px rgba(48, 173, 231, 0.3);
}

.progress-marker[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.progress-marker[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

/* Marker reached state */
.progress-marker.reached {
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    border-color: #5cb85c;
    color: #fff;
    box-shadow: 0 2px 6px rgba(92, 184, 92, 0.4);
}

/* Success state (100%) */
.free-shipment-progress-divider.completed .progress-message {
    color: #5cb85c;
}

.free-shipment-progress-divider.completed .progress-message strong {
    color: #5cb85c;
}

.free-shipment-progress-divider.completed .progress-message i {
    color: #5cb85c;
    animation: none;
}

.free-shipment-progress-divider.completed .progress-fill {
    background: linear-gradient(90deg, #5cb85c 0%, #6dd76d 50%, #5cb85c 100%);
    background-size: 200% 100%;
}

}
