/* Wildanet Progress Stepper Styles */
.wildanet-progress-stepper {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.stepper-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.stepper-step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.stepper-step.is-clickable .stepper-step-link:hover {
    transform: translateY(-2px);
}

.stepper-step.is-clickable {
    cursor: pointer;
}

.stepper-step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.stepper-step.is-current .stepper-step-circle {
    background-color: #31a4a5;
    border-color: #31a4a5;
    box-shadow: 0 0 0 6px rgba(49, 164, 165, 0.25);
    transform: scale(1.15);
    animation: stepper-pulse 2s ease-in-out infinite;
}

@keyframes stepper-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 6px rgba(49, 164, 165, 0.25);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(49, 164, 165, 0.12);
    }
}

.stepper-step.is-completed .stepper-step-circle {
    background-color: #ffffff;
    border-color: #31a4a5;
}

.stepper-number {
    font-size: 24px;
    font-weight: 600;
    color: #9ca3af;
}

.stepper-step.is-current .stepper-number {
    color: #ffffff;
}

.stepper-checkmark {
    width: 28px;
    height: 28px;
    color: #31a4a5;
}

.stepper-step-label {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
}

.stepper-step.is-current .stepper-step-label {
    color: #31a4a5;
    font-weight: 700;
    font-size: 15px;
    position: relative;
}

.stepper-step.is-completed .stepper-step-label {
    color: #31a4a5;
}

.stepper-line {
    flex: 1;
    height: 3px;
    background-color: #e5e7eb;
    margin: 0 10px;
    position: relative;
    top: -30px;
    transition: background-color 0.3s ease;
}

.stepper-line.is-completed {
    background-color: #31a4a5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stepper-step-circle {
        width: 50px;
        height: 50px;
    }

    .stepper-number {
        font-size: 20px;
    }

    .stepper-checkmark {
        width: 24px;
        height: 24px;
    }

    .stepper-step-label {
        font-size: 12px;
    }

    .stepper-line {
        top: -25px;
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .stepper-step-circle {
        width: 40px;
        height: 40px;
    }

    .stepper-number {
        font-size: 16px;
    }

    .stepper-checkmark {
        width: 20px;
        height: 20px;
    }

    .stepper-step-label {
        font-size: 11px;
        max-width: 70px;
    }

    .stepper-line {
        top: -20px;
    }
}

/* Inline Basket Styles - Card Design */
.wildanet-inline-basket {
    max-width: 800px;
    margin: 12px auto;
    padding: 16px 20px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wildanet-inline-basket .basket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #31a4a5;
}

.wildanet-inline-basket .basket-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.wildanet-inline-basket .basket-count {
    background-color: #31a4a5;
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.wildanet-inline-basket .basket-empty {
    text-align: center;
    padding: 16px;
    color: #6b7280;
}

.wildanet-inline-basket .basket-empty p {
    margin: 0;
    font-size: 14px;
}

.wildanet-inline-basket .basket-items {
    margin-bottom: 10px;
}

.wildanet-inline-basket .basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.wildanet-inline-basket .basket-item:last-child {
    border-bottom: none;
}

.wildanet-inline-basket .item-details {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.wildanet-inline-basket .item-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.wildanet-inline-basket .item-quantity {
    font-size: 13px;
    color: #6b7280;
}

.wildanet-inline-basket .item-price {
    font-size: 14px;
    font-weight: 600;
    color: #31a4a5;
}

.wildanet-inline-basket .basket-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 2px solid #e5e7eb;
    margin-top: 4px;
}

.wildanet-inline-basket .total-label {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.wildanet-inline-basket .total-amount {
    font-size: 16px;
    font-weight: 700;
    color: #31a4a5;
}

/* Responsive adjustments for inline basket */
@media (max-width: 768px) {
    .wildanet-inline-basket {
        margin: 10px;
        padding: 10px 12px;
    }

    .wildanet-inline-basket .basket-title {
        font-size: 15px;
    }

    .wildanet-inline-basket .basket-count {
        font-size: 12px;
        padding: 2px 8px;
    }
}

/* Hide floating cart on select-package page */
body.page-id-select-package #fkcart-floating-toggler,
body[class*="select-package"] #fkcart-floating-toggler {
    display: none !important;
}

/* Product Section Card Styling - Targeting any major Elementor section that isn't the stepper */
.elementor-section.elementor-top-section:not(.wildanet-progress-stepper-section) {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    padding: 40px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
}

/* Ensure inner content container is full width within the card */
.elementor-section.elementor-top-section:not(.wildanet-progress-stepper-section)>.elementor-container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Style headings within the product card */
.elementor-section.elementor-top-section:not(.wildanet-progress-stepper-section) h1,
.elementor-section.elementor-top-section:not(.wildanet-progress-stepper-section) h2 {
    color: #6b7280 !important;
    font-weight: 600 !important;
    margin-bottom: 25px !important;
    text-align: center !important;
}

/* Global Address Display */
.stepper-address-bar {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.wildanet-current-address-display {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: #123459;
    /* Wildanet Deep Blue */
    background: #ffffff;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(18, 52, 89, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 1.5em;
    min-width: 150px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wildanet-current-address-display.has-value {
    background: #ffffff;
    color: #123459;
    border-color: rgba(49, 164, 165, 0.3);
    font-size: 14px;
    padding: 8px 24px;
}

.wildanet-current-address-display:empty:before {
    content: "📍 " attr(data-placeholder);
    opacity: 0.6;
    font-style: italic;
}