/**
 * Nordpaa Calculator Frontend Styles
 */

/* CSS Custom Properties with default values - can be overridden by branding settings */
#nordpaa-calculator {
    --nordpaa-primary: #6366f1;
    --nordpaa-secondary: #8b5cf6;
    --nordpaa-accent: #ec4899;
    --nordpaa-font: 'Inter', sans-serif;
}

.nordpaa-calc-loading {
    text-align: center;
    padding: 60px 20px;
}

.nordpaa-calc-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--nordpaa-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.nordpaa-calc-header {
    text-align: center;
    margin-bottom: 40px;
}

.nordpaa-calc-header h1 {
    font-size: 36px;
    font-weight: bold;
    color: var(--nordpaa-primary);
    margin-bottom: 10px;
    font-family: var(--nordpaa-font);
}

.nordpaa-calc-header p {
    font-size: 18px;
    color: #64748b;
    font-family: var(--nordpaa-font);
}

/* CALCULATOR-LAYOUT: Fælles flex-container til Wrapper + Summary */
.nordpaa-calc-outer-wrapper {
    display: flex;
    width: 100%;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 24px;
}

/* CALCULATOR-WRAPPER: Fast bredde 1024px */
.nordpaa-calc-wrapper {
    max-width: 1024px;
    flex: 0 0 1024px;
    min-width: 0;
}

.nordpaa-calc-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 24px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


.nordpaa-calc-section {
    margin-bottom: 32px;
}

.nordpaa-calc-section:last-child {
    margin-bottom: 0;
}

.nordpaa-calc-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    color: hsl(222.2 47.4% 11.2%);
    margin-bottom: 16px;
}

.nordpaa-calc-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--nordpaa-primary);
}

/* Employee Slider */
.nordpaa-calc-slider-container {
    padding: 0;
    position: relative;
}

.nordpaa-calc-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: hsl(214.3 31.8% 91.4%);
    outline: none;
    -webkit-appearance: none;
    position: relative;
}

.nordpaa-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--nordpaa-primary);
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.nordpaa-calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--nordpaa-primary);
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 10;
}

.nordpaa-calc-slider-dots {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.nordpaa-calc-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid hsl(215.4 16.3% 46.9% / 0.3);
    background: white;
    transition: all 0.3s;
}

.nordpaa-calc-slider-dot.active {
    background: var(--nordpaa-primary);
    border-color: var(--nordpaa-primary);
}

.nordpaa-calc-slider-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    font-size: 12px;
    color: hsl(215.4 16.3% 46.9%);
}

/* Billing Toggle */
.nordpaa-calc-billing-toggle {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.nordpaa-calc-billing-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: hsl(240 4.8% 95.9%);
    color: hsl(240 5.9% 10%);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.nordpaa-calc-billing-btn:hover {
    background: hsl(240 4.8% 90%);
}

.nordpaa-calc-billing-btn.active {
    background: var(--nordpaa-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
}

.nordpaa-calc-badge {
    position: absolute;
    top: -14px;
    right: -8px;
    padding: 4px 8px;
    background: var(--nordpaa-accent);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Products Grid */
.nordpaa-calc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.nordpaa-calc-product-card {
    border: 1px solid hsl(214.3 31.8% 91.4%);
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
}

.nordpaa-calc-product-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nordpaa-calc-product-card.selected {
    border: 2px solid var(--nordpaa-primary);
    padding: 23px; /* Compensate for thicker border */
}

.nordpaa-calc-product-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.nordpaa-calc-product-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--nordpaa-primary);
}

.nordpaa-calc-product-details {
    flex: 1;
    min-width: 0;
}

.nordpaa-calc-product-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: hsl(222.2 47.4% 11.2%);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.nordpaa-calc-product-desc {
    font-size: 15px;
    color: hsl(215.4 16.3% 46.9%);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.nordpaa-calc-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: var(--nordpaa-primary);
}

.nordpaa-calc-price-suffix {
    font-size: 12px;
    font-weight: normal;
    color: hsl(215.4 16.3% 46.9%);
}

/* CALCULATOR-SUMMARY: Default styles */
.nordpaa-calc-summary-wrapper {
    width: 350px;
    box-sizing: border-box;
}

/* Desktop xl (>= 1406px): CSS GRID layout med centreret Wrapper og sticky Summary */
@media (min-width: 1406px) {
    /* Shell container - INGEN overflow hidden */
    #nordpaa-calculator,
    #nordpaa-calculator.calculator-shell,
    .calculator-shell {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    /* CALCULATOR-LAYOUT: CSS GRID for præcis placering */
    .nordpaa-calc-outer-wrapper,
    .nordpaa-calc-outer-wrapper.nordpaa-calc-outer-wrapper {
        display: grid !important;
        /* Venstre kolonne: fast 1024px, Højre kolonne: fast 350px */
        grid-template-columns: 1024px 350px !important;
        /* Gap vokser for at centrere indholdet */
        column-gap: 32px !important;
        width: 100% !important;
        max-width: none !important;
        padding: 24px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        align-items: start !important;
        /* CENTRERER hele grid'et */
        justify-content: center !important;
        /* KRITISK FOR STICKY: Ingen overflow begrænsning */
        overflow: visible !important;
    }
    
    /* CALCULATOR-WRAPPER: Fast 1024px, centreret via grid */
    .nordpaa-calc-wrapper,
    .nordpaa-calc-wrapper.nordpaa-calc-wrapper {
        max-width: 1024px !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        /* KRITISK FOR STICKY: Ingen overflow begrænsning */
        overflow: visible !important;
    }
    
    /* CALCULATOR-CARD: Fylder wrapper */
    .nordpaa-calc-card,
    .nordpaa-calc-card.nordpaa-calc-card {
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    /* CALCULATOR-SUMMARY: Fast 350px, STICKY */
    .nordpaa-calc-summary-wrapper,
    .nordpaa-calc-summary-wrapper.nordpaa-calc-summary-wrapper {
        display: block !important;
        width: 350px !important;
        max-width: 350px !important;
        min-width: 350px !important;
        margin: 0 !important;
        position: sticky !important;
        top: 120px !important;
        transform: none !important;
        align-self: start !important;
        overflow: visible !important;
    }
    
    /* Sidebar placeholder - SYNLIG på desktop */
    .nordpaa-calc-summary-sidebar-placeholder {
        display: block !important;
        width: 350px !important;
        max-width: 350px !important;
        min-width: 350px !important;
        margin: 0 !important;
        position: sticky !important;
        top: 120px !important;
        transform: none !important;
        align-self: start !important;
        overflow: visible !important;
    }
    
    /* Summary-wrapper INDE I sidebar placeholder */
    .nordpaa-calc-summary-sidebar-placeholder .nordpaa-calc-summary-wrapper {
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        top: auto !important;
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS: 1406px -> 360px
   ============================================ */

/* Tablet/Mobile (< 1406px): Sticky footer at bottom */
@media (max-width: 1405px) {
    .nordpaa-calc-summary-wrapper {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 9999 !important;
        background: white !important;
        border-top: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        transform: none !important;
        /* KRITISK: Sikr at summary ALTID er synlig ved bunden */
        min-height: 70px !important;
        height: auto !important;
        max-height: 80vh !important;
        overflow: visible !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nordpaa-calc-summary-wrapper .nordpaa-calc-summary-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        display: block !important;
        visibility: visible !important;
    }
    
    .nordpaa-calc-summary-wrapper .nordpaa-calc-summary {
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: white;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Header skal ALTID være synlig */
    .nordpaa-calc-summary-wrapper .nordpaa-calc-summary-header {
        display: flex !important;
        visibility: visible !important;
        min-height: 60px !important;
    }
    
    .nordpaa-calc-summary-sidebar-placeholder {
        display: none !important;
    }
    
    /* Content wrapper - override flex to block */
    .nordpaa-calc-outer-wrapper,
    .nordpaa-calc-outer-wrapper.nordpaa-calc-outer-wrapper {
        display: block !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 24px 16px 200px 16px !important;
        box-sizing: border-box !important;
        left: auto !important;
        transform: none !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    .nordpaa-calc-wrapper,
    .nordpaa-calc-wrapper.nordpaa-calc-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }
    
    .nordpaa-calc-card,
    .nordpaa-calc-card.nordpaa-calc-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding: 20px !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }
    
    .nordpaa-calc-header {
        margin-bottom: 28px !important;
    }
    
    .nordpaa-calc-header h1 {
        font-size: 30px !important;
    }
    
    .nordpaa-calc-header p {
        font-size: 16px !important;
    }
    
    /* 2 columns on larger tablets */
    .nordpaa-calc-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .nordpaa-calc-product-card {
        padding: 20px !important;
    }
    
    .nordpaa-calc-product-card.selected {
        padding: 19px !important;
    }
    
    .nordpaa-calc-form-section {
        max-width: 100% !important;
    }
    
    /* Summary header responsive */
    .nordpaa-calc-summary-wrapper .nordpaa-calc-summary-header {
        padding: 14px 20px;
    }
    
    .nordpaa-calc-summary-wrapper .nordpaa-calc-summary-content-inner {
        padding: 0 20px 20px 20px;
    }
}

/* Tablet portrait (< 1024px) */
@media (max-width: 1023px) {
    .nordpaa-calc-outer-wrapper {
        padding: 20px 20px 190px 20px !important;
    }
    
    .nordpaa-calc-header h1 {
        font-size: 28px !important;
    }
    
    .nordpaa-calc-card {
        padding: 18px !important;
    }
    
    .nordpaa-calc-product-details h3 {
        font-size: 17px !important;
    }
    
    .nordpaa-calc-product-desc {
        font-size: 14px !important;
    }
    
    .nordpaa-calc-product-price {
        font-size: 22px !important;
    }
    
    .nordpaa-calc-label {
        font-size: 16px !important;
    }
    
    .nordpaa-calc-value {
        font-size: 22px !important;
    }
}

/* Mobile landscape / small tablet (< 768px) */
@media (max-width: 767px) {
    .nordpaa-calc-outer-wrapper {
        padding: 16px 16px 180px 16px !important;
    }
    
    .nordpaa-calc-header {
        margin-bottom: 20px !important;
    }
    
    .nordpaa-calc-header h1 {
        font-size: 24px !important;
    }
    
    .nordpaa-calc-header p {
        font-size: 15px !important;
    }
    
    .nordpaa-calc-card {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }
    
    /* Single column on mobile */
    .nordpaa-calc-products-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .nordpaa-calc-product-card {
        padding: 16px !important;
    }
    
    .nordpaa-calc-product-card.selected {
        padding: 15px !important;
    }
    
    .nordpaa-calc-product-details h3 {
        font-size: 16px !important;
    }
    
    .nordpaa-calc-product-desc {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    
    .nordpaa-calc-product-price {
        font-size: 20px !important;
    }
    
    .nordpaa-calc-section {
        margin-bottom: 24px !important;
    }
    
    .nordpaa-calc-label {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
    
    .nordpaa-calc-value {
        font-size: 20px !important;
    }
    
    .nordpaa-calc-billing-toggle {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .nordpaa-calc-billing-btn {
        width: 100% !important;
        padding: 10px 20px !important;
    }
    
    /* Summary header mobile */
    .nordpaa-calc-summary-wrapper .nordpaa-calc-summary-header {
        padding: 12px 16px;
    }
    
    .nordpaa-calc-summary-header h3 {
        font-size: 16px !important;
    }
    
    .nordpaa-calc-summary-header-price {
        font-size: 18px !important;
    }
    
    .nordpaa-calc-summary-wrapper .nordpaa-calc-summary-content-inner {
        padding: 0 16px 16px 16px;
    }
    
    .nordpaa-calc-summary-header-left {
        gap: 10px !important;
    }
    
    /* Form mobile */
    .nordpaa-calc-form-header h3 {
        font-size: 20px !important;
    }
    
    .nordpaa-calc-form-header p {
        font-size: 14px !important;
    }
    
    .nordpaa-calc-form-group input,
    .nordpaa-calc-form-group textarea {
        padding: 10px 14px !important;
        font-size: 16px !important;
    }
}

/* Small mobile (< 480px) */
@media (max-width: 479px) {
    .nordpaa-calc-outer-wrapper {
        padding: 12px 12px 170px 12px !important;
    }
    
    .nordpaa-calc-header h1 {
        font-size: 22px !important;
    }
    
    .nordpaa-calc-header p {
        font-size: 14px !important;
    }
    
    .nordpaa-calc-card {
        padding: 14px !important;
        border-radius: 10px !important;
    }
    
    .nordpaa-calc-product-card {
        padding: 14px !important;
    }
    
    .nordpaa-calc-product-card.selected {
        padding: 13px !important;
    }
    
    .nordpaa-calc-product-content {
        gap: 12px !important;
    }
    
    .nordpaa-calc-product-checkbox {
        width: 18px !important;
        height: 18px !important;
    }
    
    .nordpaa-calc-product-details h3 {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }
    
    .nordpaa-calc-product-desc {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }
    
    .nordpaa-calc-product-price {
        font-size: 18px !important;
    }
    
    .nordpaa-calc-price-suffix {
        font-size: 11px !important;
    }
    
    .nordpaa-calc-slider-info {
        font-size: 11px !important;
        margin-top: 16px !important;
    }
    
    .nordpaa-calc-summary-header-left {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    .nordpaa-calc-summary-header-info {
        font-size: 12px !important;
    }
    
    /* Summary total price mobile */
    .nordpaa-calc-summary-total-price > div:first-child {
        font-size: 24px !important;
    }
}

/* Extra small mobile (360px) */
@media (max-width: 400px) {
    .nordpaa-calc-outer-wrapper {
        padding: 10px 10px 160px 10px !important;
    }
    
    .nordpaa-calc-header h1 {
        font-size: 20px !important;
    }
    
    .nordpaa-calc-card {
        padding: 12px !important;
    }
    
    .nordpaa-calc-product-card {
        padding: 12px !important;
    }
    
    .nordpaa-calc-product-card.selected {
        padding: 11px !important;
    }
    
    .nordpaa-calc-product-details h3 {
        font-size: 14px !important;
    }
    
    .nordpaa-calc-product-price {
        font-size: 16px !important;
    }
    
    .nordpaa-calc-billing-btn {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
    
    .nordpaa-calc-badge {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

.nordpaa-calc-summary-container {
    padding: 0;
    margin: 0;
    max-width: none;
    pointer-events: auto;
}

/* Remove duplicate - handled in main .expanded block below */

.nordpaa-calc-summary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: none;
}

@media (max-width: 768px) {
    .nordpaa-calc-summary {
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }
}

.nordpaa-calc-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.nordpaa-calc-summary-header:hover {
    background: rgba(11, 38, 80, 0.03);
}

.nordpaa-calc-summary-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nordpaa-calc-summary-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0B2650;
    margin: 0;
}

.nordpaa-calc-summary-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.nordpaa-calc-summary-header-info .separator {
    width: 1px;
    height: 16px;
    background: #e2e8f0;
}

.nordpaa-calc-summary-header-price {
    font-size: 20px;
    font-weight: bold;
    color: #0B2650;
}

.nordpaa-calc-summary-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nordpaa-calc-summary-toggle:hover {
    color: #0B2650;
    transform: scale(1.1);
}

.nordpaa-calc-summary-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nordpaa-calc-summary-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

.nordpaa-calc-summary-content.expanded {
    max-height: 500px; /* Fixed max-height for expanded state */
    overflow-y: auto;
    opacity: 1;
}

/* Mobile adjustments for summary content */
@media (max-width: 1399px) {
    .nordpaa-calc-summary-content.expanded {
        max-height: 60vh; /* More space on mobile/tablet */
    }
}

.nordpaa-calc-summary-content-inner {
    padding: 0 24px 24px 24px;
}

.nordpaa-calc-summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin-bottom: 24px;
}

.nordpaa-calc-summary-empty {
    text-align: center;
    color: #64748b;
    padding: 20px;
}

.nordpaa-calc-summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nordpaa-calc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.nordpaa-calc-summary-item.discount {
    color: #ef4444;
}

.nordpaa-calc-summary-item.bundle-discount {
    color: #16a34a;
}

.nordpaa-calc-summary-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.nordpaa-calc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.nordpaa-calc-summary-total > span {
    font-size: 18px;
    font-weight: 600;
}

.nordpaa-calc-summary-total-price {
    text-align: right;
}

.nordpaa-calc-summary-total-price > div:first-child {
    font-size: 28px;
    font-weight: bold;
    color: #0B2650;
}

.nordpaa-calc-summary-period {
    font-size: 12px;
    color: #64748b;
}

.nordpaa-calc-muted {
    color: #64748b;
    font-size: 14px;
}

.spinner-small {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0B2650;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Lead Form */
.nordpaa-calc-form-section {
    max-width: 600px;
    margin: 0 auto;
}

.nordpaa-calc-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.nordpaa-calc-form-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: hsl(222.2 47.4% 11.2%);
    margin: 0 0 8px 0;
}

.nordpaa-calc-form-header p {
    font-size: 16px;
    color: hsl(215.4 16.3% 46.9%);
}

.nordpaa-calc-form-group {
    margin-bottom: 20px;
}

.nordpaa-calc-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: hsl(222.2 47.4% 11.2%);
    margin-bottom: 8px;
}

.nordpaa-calc-form-group input,
.nordpaa-calc-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid hsl(214.3 31.8% 91.4%);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: white;
    color: hsl(222.2 47.4% 11.2%);
}

.nordpaa-calc-form-group input:focus,
.nordpaa-calc-form-group textarea:focus {
    outline: none;
    border-color: var(--nordpaa-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.nordpaa-calc-form-group input:disabled {
    background: hsl(240 4.8% 95.9%);
    cursor: not-allowed;
    opacity: 0.5;
}

.nordpaa-calc-form-group small {
    display: block;
    font-size: 12px;
    color: hsl(215.4 16.3% 46.9%);
    margin-top: 6px;
}

/* Inline field error messages */
.nordpaa-calc-field-error {
    display: none;
    font-size: 13px;
    color: hsl(0 84.2% 60.2%);
    margin-top: 6px;
    font-weight: 500;
}

.nordpaa-calc-field-error:not(:empty) {
    display: block;
}

/* Input error state */
.nordpaa-input-error {
    border-color: hsl(0 84.2% 60.2%) !important;
    background-color: hsl(0 84.2% 60.2% / 0.05) !important;
}

.nordpaa-input-error:focus {
    border-color: hsl(0 84.2% 60.2%) !important;
    box-shadow: 0 0 0 3px hsl(0 84.2% 60.2% / 0.1) !important;
}

.nordpaa-calc-manual-distance {
    padding: 12px 16px;
    background: hsl(240 4.8% 95.9% / 0.5);
    border-radius: 8px;
    margin-bottom: 20px;
}

.nordpaa-calc-manual-distance label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: hsl(222.2 47.4% 11.2%);
    font-weight: 500;
}

.nordpaa-calc-manual-distance input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.nordpaa-calc-submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--nordpaa-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nordpaa-calc-submit-btn:hover {
    filter: brightness(0.9);
}

.nordpaa-calc-submit-btn:disabled {
    background: hsl(215.4 16.3% 46.9%);
    cursor: not-allowed;
    opacity: 0.5;
}

.nordpaa-calc-form-message {
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.nordpaa-calc-form-message.success {
    background: #d1fae5;
    color: #065f46;
}

.nordpaa-calc-form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Summary buttons wrapper - placed outside content to always be visible */
.nordpaa-calc-summary-buttons-wrapper {
    padding: 0 24px 24px 24px;
    border-top: 1px solid #e2e8f0;
}

/* Summary z-index to be above cookie consent dialogs */
.nordpaa-calc-summary-wrapper {
    z-index: 2147483647 !important;
}

/* Ensure submit button has correct colors on mobile - use inline style as fallback */
.nordpaa-calc-summary-buttons .nordpaa-calc-submit-btn,
.nordpaa-calc-summary-submit-btn,
#summary-submit-btn {
    background: var(--nordpaa-primary, #6366f1) !important;
    background-color: var(--nordpaa-primary, #6366f1) !important;
    color: white !important;
    color: #ffffff !important;
}

/* Summary buttons container */
.nordpaa-calc-summary-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
}

.nordpaa-calc-summary-buttons .nordpaa-calc-submit-btn {
    margin-top: 0;
}

.nordpaa-calc-summary-buttons .nordpaa-calc-submit-btn svg {
    flex-shrink: 0;
}

/* PDF Download Button */
.nordpaa-calc-download-pdf-btn {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    color: var(--nordpaa-primary);
    border: 2px solid var(--nordpaa-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nordpaa-calc-download-pdf-btn:hover {
    background: #f8fafc;
    border-color: #0B2650;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 38, 80, 0.15);
}

.nordpaa-calc-download-pdf-btn:active {
    transform: translateY(0);
}

.nordpaa-calc-download-pdf-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nordpaa-calc-download-pdf-btn:hover svg {
    transform: translateY(2px);
}

.nordpaa-calc-download-pdf-btn:hover svg {
    transform: translateY(2px);
}

/* ROOT CONTAINER - Full width, centered, no horizontal scroll */
#nordpaa-calculator,
#nordpaa-calculator#nordpaa-calculator {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* OUTER WRAPPER - Contains both card and summary */
.nordpaa-calc-outer-wrapper,
.nordpaa-calc-outer-wrapper.nordpaa-calc-outer-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 24px 16px 200px 16px !important;
    box-sizing: border-box !important;
    left: auto !important;
    transform: none !important;
    overflow: visible !important;
}

/* CONTENT WRAPPER - The card area */
.nordpaa-calc-wrapper,
.nordpaa-calc-wrapper.nordpaa-calc-wrapper {
    flex: 1;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* CARD - Full width of wrapper */
.nordpaa-calc-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* ============================================
   DESKTOP LAYOUT (>= 1406px)
   - Outer container: 100% width, NO max-width
   - Wrapper: fixed 1024px width (left side)
   - Summary: fixed 350px width with margin-left: auto (far right)
   - Only the gap between them grows on larger screens
   ============================================ */
@media (min-width: 1406px) {
    #nordpaa-calculator,
    #nordpaa-calculator#nordpaa-calculator {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nordpaa-calc-outer-wrapper {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 40px 32px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }
    
    /* Card wrapper - fixed 1024px width, stays on left */
    .nordpaa-calc-wrapper {
        flex: 0 0 1024px !important;
        width: 1024px !important;
        min-width: 1024px !important;
        max-width: 1024px !important;
        margin: 0 !important;
    }
    
    /* Summary sidebar - fixed 350px width, margin-left: auto pushes to far right */
    .nordpaa-calc-summary-sidebar-placeholder {
        flex: 0 0 350px !important;
        width: 350px !important;
        min-width: 350px !important;
        max-width: 350px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        position: sticky !important;
        top: 120px !important;
        align-self: flex-start !important;
        height: fit-content !important;
    }
}

/* Mobile responsive (< 1400px) - handled in RESPONSIVE BREAKPOINTS section above */

/* Debug Mode Styles */
.nordpaa-debug-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999999;
}

.nordpaa-debug-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.nordpaa-debug-info {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    max-width: 350px;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000000;
}

.nordpaa-debug-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #4ecdc4;
}

.nordpaa-debug-metrics {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nordpaa-debug-metrics div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.nordpaa-debug-metrics strong {
    color: #ffe66d;
}

/* ===== SUCCESS MODAL ===== */
.nordpaa-success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

.nordpaa-success-modal-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
    backdrop-filter: blur(4px);
}

.nordpaa-success-modal-overlay.closing {
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    backdrop-filter: blur(0px);
}

.nordpaa-success-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.nordpaa-success-modal-overlay.active .nordpaa-success-modal {
    transform: scale(1) translateY(0);
}

.nordpaa-success-modal-overlay.closing .nordpaa-success-modal {
    transform: scale(0.8) translateY(20px);
}

/* Confetti effect */
.nordpaa-success-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.nordpaa-success-confetti::before,
.nordpaa-success-confetti::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--modal-primary, #6366f1);
    border-radius: 50%;
    animation: confetti-fall 2s ease-out forwards;
}

.nordpaa-success-confetti::before {
    left: 20%;
    animation-delay: 0.1s;
    background: var(--modal-accent, #ec4899);
}

.nordpaa-success-confetti::after {
    left: 80%;
    animation-delay: 0.2s;
    background: var(--modal-secondary, #8b5cf6);
}

@keyframes confetti-fall {
    0% {
        top: -10px;
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: rotate(720deg) scale(0.5);
    }
}

.nordpaa-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--modal-primary, #6366f1) 0%, var(--modal-secondary, #8b5cf6) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px -10px var(--modal-primary, rgba(99, 102, 241, 0.5));
    animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes success-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.nordpaa-success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    animation: checkmark-draw 0.4s ease-out 0.5s both;
}

@keyframes checkmark-draw {
    0% {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}

.nordpaa-success-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    font-family: var(--modal-font, 'Inter', sans-serif);
    animation: fade-in-up 0.4s ease-out 0.3s both;
}

.nordpaa-success-message {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 32px 0;
    line-height: 1.6;
    font-family: var(--modal-font, 'Inter', sans-serif);
    animation: fade-in-up 0.4s ease-out 0.4s both;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nordpaa-success-btn {
    background: linear-gradient(135deg, var(--modal-primary, #6366f1) 0%, var(--modal-secondary, #8b5cf6) 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -3px var(--modal-primary, rgba(99, 102, 241, 0.4));
    font-family: var(--modal-font, 'Inter', sans-serif);
    animation: fade-in-up 0.4s ease-out 0.5s both;
}

.nordpaa-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px var(--modal-primary, rgba(99, 102, 241, 0.5));
}

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

/* ===========================================
   BUNDLES / PACKAGES SECTION
   =========================================== */

.nordpaa-calc-bundles-section {
    margin-bottom: 24px;
}

.nordpaa-calc-bundles-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.nordpaa-calc-bundles-header svg {
    color: var(--nordpaa-primary, #6366f1);
}

.nordpaa-calc-bundles-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: hsl(222.2 47.4% 11.2%);
    margin: 0;
}

.nordpaa-calc-bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.nordpaa-calc-bundle-card {
    background: white;
    border: 1px solid hsl(214.3 31.8% 91.4%);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
}

.nordpaa-calc-bundle-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nordpaa-calc-bundle-card.selected {
    border: 2px solid var(--nordpaa-primary, #6366f1);
    background: rgba(99, 102, 241, 0.05);
    padding: 15px;
}

.nordpaa-calc-bundle-badge,
.nordpaa-calc-bundle-badge-discount {
    background: hsl(0, 84%, 60%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ==============================
   Badge Container System (v3.10.0)
   ============================== */
.nordpaa-badge-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    z-index: 10;
}

/* Inline: next to each other, positioned absolute top-right (default) */
.nordpaa-badge-container.nordpaa-badge-inline {
    position: absolute;
    top: -10px;
    right: -8px;
}

/* Top right outside card */
.nordpaa-badge-container.nordpaa-badge-top_right_outside {
    position: absolute;
    top: -12px;
    right: -10px;
}

/* Top right inside card */
.nordpaa-badge-container.nordpaa-badge-top_right_inside {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Top left inside card */
.nordpaa-badge-container.nordpaa-badge-top_left_inside {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
}

/* Top center inside card */
.nordpaa-badge-container.nordpaa-badge-top_center_inside {
    position: absolute;
    top: 8px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    justify-content: center;
}

/* Header row right - flows inline inside bundle-content */
.nordpaa-badge-container.nordpaa-badge-header_row_right {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

/* Header row left */
.nordpaa-badge-container.nordpaa-badge-header_row_left {
    position: relative;
    margin-right: auto;
    flex-shrink: 0;
    order: -1;
}

/* Under header right */
.nordpaa-badge-container.nordpaa-badge-under_header_right {
    position: relative;
    justify-content: flex-end;
    width: 100%;
    margin-top: 4px;
}

/* Under header left */
.nordpaa-badge-container.nordpaa-badge-under_header_left {
    position: relative;
    justify-content: flex-start;
    width: 100%;
    margin-top: 4px;
}

.nordpaa-calc-bundle-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nordpaa-calc-bundle-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(240 4.8% 95.9%);
    border-radius: 8px;
    color: hsl(215.4 16.3% 46.9%);
    transition: all 0.2s ease;
}

.nordpaa-calc-bundle-icon.selected {
    background: var(--nordpaa-primary, #6366f1);
    color: white;
}

.nordpaa-calc-bundle-details {
    flex: 1;
    min-width: 0;
}

.nordpaa-calc-bundle-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: hsl(222.2 47.4% 11.2%);
    margin: 0 0 4px 0;
}

.nordpaa-calc-bundle-details p {
    font-size: 14px;
    color: hsl(215.4 16.3% 46.9%);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.nordpaa-calc-bundle-products {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nordpaa-calc-bundle-product-tag {
    display: inline-block;
    padding: 4px 10px;
    background: hsl(240 4.8% 95.9%);
    border: 1px solid hsl(214.3 31.8% 91.4%);
    border-radius: 999px;
    font-size: 12px;
    color: hsl(222.2 47.4% 11.2%);
}

/* Slider CAPTCHA */
.nordpaa-calc-captcha {
    margin-top: 16px;
}

.nordpaa-calc-captcha-track {
    position: relative;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: hsla(210, 40%, 96%, 0.5);
    border: 2px solid hsl(214.3, 31.8%, 91.4%);
    transition: all 0.3s ease;
}

.nordpaa-calc-captcha-track:hover {
    border-color: hsla(222.2, 47.4%, 11.2%, 0.5);
}

.nordpaa-calc-captcha.verified .nordpaa-calc-captcha-track {
    background: hsla(142, 76%, 36%, 0.2);
    border-color: hsl(142, 76%, 36%);
}

.nordpaa-calc-captcha-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 48px;
    background: hsla(222.2, 47.4%, 11.2%, 0.2);
    transition: background 0.3s ease;
}

.nordpaa-calc-captcha.verified .nordpaa-calc-captcha-fill {
    width: 100% !important;
    background: hsla(142, 76%, 36%, 0.3);
}

.nordpaa-calc-captcha-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: hsl(215.4, 16.3%, 46.9%);
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s ease;
}

.nordpaa-calc-captcha.verified .nordpaa-calc-captcha-text {
    color: hsl(142, 76%, 30%);
    opacity: 1 !important;
}

.nordpaa-calc-captcha-thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: 40px;
    border-radius: 6px;
    background: hsl(222.2, 47.4%, 11.2%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(210, 40%, 98%);
    font-size: 20px;
    font-weight: 400;
    cursor: grab;
    transition: transform 0.15s ease, background 0.3s ease, box-shadow 0.15s ease;
    touch-action: none;
}

.nordpaa-calc-captcha-thumb:hover {
    background: hsla(222.2, 47.4%, 11.2%, 0.9);
}

.nordpaa-calc-captcha-thumb.dragging {
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nordpaa-calc-captcha-thumb.verified {
    background: hsl(142, 76%, 36%);
    cursor: default;
}

.nordpaa-calc-captcha-thumb.verified:hover {
    transform: none;
    background: hsl(142, 76%, 36%);
}

.nordpaa-calc-captcha-hint {
    text-align: center;
    font-size: 12px;
    color: hsl(215.4, 16.3%, 46.9%);
    margin-top: 8px;
}

.nordpaa-calc-captcha .nordpaa-calc-field-error {
    display: none;
    color: hsl(0 84% 60%);
    font-size: 12px;
    margin-top: 6px;
}

/* Rounding note in summary */
.nordpaa-calc-summary-rounding-note {
    font-size: 12px;
    color: hsl(215.4, 16.3%, 46.9%);
    text-align: right;
    margin-top: 4px;
    font-style: italic;
}

/* Awaiting travel calculation message */
.nordpaa-calc-awaiting-travel {
    text-align: center;
    padding: 16px 0;
}

/* ==============================
   v3.9.0 Multi-Campaign Countdown
   ============================== */
.nordpaa-campaign-countdown {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    text-align: center;
    color: #fff;
    font-family: var(--nordpaa-font);
}

/* Multiple banners stacked */
.nordpaa-campaign-countdown + .nordpaa-campaign-countdown {
    margin-top: 8px;
}

.nordpaa-campaign-countdown-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nordpaa-campaign-countdown-timer {
    font-family: 'Courier New', 'Lucida Console', 'Consolas', monospace;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.nordpaa-countdown-segment {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nordpaa-countdown-value {
    font-size: 36px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center;
}

.nordpaa-countdown-unit {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

.nordpaa-countdown-sep {
    font-size: 32px;
    line-height: 1;
    color: rgba(255,255,255,0.5);
    padding: 0 2px;
    align-self: flex-start;
}

/* Badge countdown (separate from discount badge) */
.nordpaa-campaign-badge-countdown {
    display: inline-block;
    background: hsl(0, 84%, 60%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Courier New', 'Lucida Console', monospace !important;
    font-size: 11px !important;
    min-width: 65px !important;
    text-align: center !important;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Responsive badge container */
@media (max-width: 479px) {
    .nordpaa-badge-container {
        flex-wrap: wrap;
    }
    .nordpaa-badge-container.nordpaa-badge-inline,
    .nordpaa-badge-container.nordpaa-badge-top_right_outside {
        right: -4px;
    }
}

/* Responsive countdown */
@media (max-width: 479px) {
    .nordpaa-countdown-value {
        font-size: 28px;
    }
    .nordpaa-countdown-sep {
        font-size: 24px;
    }
    .nordpaa-campaign-countdown {
        padding: 12px 16px;
    }
}

/* Compact countdown inside product cards */
.nordpaa-calc-product-card .nordpaa-campaign-countdown {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.nordpaa-calc-product-card .nordpaa-countdown-value {
    font-size: 18px;
}

.nordpaa-calc-product-card .nordpaa-countdown-sep {
    font-size: 16px;
}

.nordpaa-calc-product-card .nordpaa-campaign-countdown-label {
    font-size: 10px;
    margin-bottom: 4px;
}

.nordpaa-calc-product-card .nordpaa-countdown-unit {
    font-size: 8px;
}

/* Product image styles */
.nordpaa-calc-product-image {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.nordpaa-calc-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image position: top */
.nordpaa-calc-product-card.image-top .nordpaa-calc-product-content {
    flex-direction: column;
}

.nordpaa-calc-product-card.image-top .nordpaa-calc-product-image {
    width: 100%;
    max-height: 140px;
}

/* Image position: bottom */
.nordpaa-calc-product-card.image-bottom .nordpaa-calc-product-content {
    flex-direction: column;
}

.nordpaa-calc-product-card.image-bottom .nordpaa-calc-product-image {
    width: 100%;
    max-height: 140px;
    order: 99;
}

/* Image position: left (default with checkbox) */
.nordpaa-calc-product-card.image-left .nordpaa-calc-product-content {
    flex-wrap: wrap;
}

.nordpaa-calc-product-card.image-left .nordpaa-calc-product-image {
    width: 80px;
    height: 80px;
    order: -1;
}

/* Image position: right */
.nordpaa-calc-product-card.image-right .nordpaa-calc-product-content {
    flex-wrap: wrap;
}

.nordpaa-calc-product-card.image-right .nordpaa-calc-product-image {
    width: 80px;
    height: 80px;
    margin-left: auto;
}

/* ==============================
   v3.14.0: Badge Microtext
   ============================== */
.nordpaa-badge-microtext {
    display: block;
    font-size: 8px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 1px;
}

/* ==============================
   v3.14.0: Separate Badge Positions
   ============================== */
.nordpaa-badge-separate {
    position: absolute;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    z-index: 10;
}
.nordpaa-badge-pos-top-left {
    top: -10px;
    left: -8px;
    right: auto;
}
.nordpaa-badge-pos-top-right {
    top: -10px;
    right: -8px;
    left: auto;
}
.nordpaa-badge-pos-bottom-left {
    bottom: -10px;
    left: -8px;
    top: auto;
    right: auto;
}
.nordpaa-badge-pos-bottom-right {
    bottom: -10px;
    right: -8px;
    top: auto;
    left: auto;
}

/* ==============================
   Product Label Badges
   ============================== */
.nordpaa-product-label-badge {
    position: absolute;
    z-index: 11;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1.4;
    pointer-events: none;
}
.nordpaa-product-label-badge.nordpaa-badge-pos-top-left {
    top: -8px;
    left: -6px;
}
.nordpaa-product-label-badge.nordpaa-badge-pos-top-right {
    top: -8px;
    right: -6px;
}
.nordpaa-product-label-badge.nordpaa-badge-pos-bottom-left {
    bottom: -8px;
    left: -6px;
    top: auto;
}
.nordpaa-product-label-badge.nordpaa-badge-pos-bottom-right {
    bottom: -8px;
    right: -6px;
    top: auto;
}
.nordpaa-product-label-badge.nordpaa-badge-pos-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
