/* TB Expeditions Frontend Styles - LOADING + ANIMATIONS + SUCCESS + ENHANCED UX */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600&family=Jost:wght@200;300;400;500&display=swap');

/* ============ LOADING STATES ============ */
.tbexp-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}



.tbexp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid rgb(255, 255, 255);
    border-radius: 50%;
    animation: tbexpSpin 1s linear infinite;
    margin-right: 8px;
}

.tbexp-spinner-dark {
    border: 2px solid rgba(23, 20, 38, 0.3);
    border-top: 2px solid rgb(23, 20, 38);
}

.tbexp-section-loading {
    position: relative;
}

.tbexp-section-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbexp-section-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(242, 5, 5, 0.3);
    border-top: 3px solid rgb(242, 5, 5);
    border-radius: 50%;
    animation: tbexpSpin 1s linear infinite;
    z-index: 11;
}

/* ============ SUCCESS INDICATORS ============ */
.tbexp-success-indicator {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    animation: tbexpSuccessShow 0.4s ease forwards;
    pointer-events: none;
    z-index: 5;
}

.tbexp-field-success {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.02) !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1) !important;
}

.tbexp-section-success {
    border-color: rgba(40, 167, 69, 0.3) !important;
    background: rgba(40, 167, 69, 0.02) !important;
    transform: scale(1.02);
    transition: all 0.4s ease;
}

/* ============ SLIDE ANIMATIONS ============ */
.tbexp-slide-in {
    animation: tbexpSlideIn 0.5s ease forwards;
}

.tbexp-slide-out {
    animation: tbexpSlideOut 0.4s ease forwards;
}

.tbexp-fade-in {
    animation: tbexpFadeIn 0.6s ease forwards;
}

.tbexp-fade-out {
    animation: tbexpFadeOut 0.3s ease forwards;
}

.tbexp-step {
    transition: all 0.5s ease;
}

.tbexp-step-hidden {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.tbexp-step:not(.tbexp-step-hidden) {
    opacity: 1;
    transform: translateY(0);
    max-height: none;
}

/* ============ PROGRESS BAR STYLES ============ */
.tbexp-progress-bar {
    background: rgb(255, 255, 255);
    border: 1px solid rgba(231, 231, 233, 0.8);
    border-radius: 0px;
    padding: 25px 30px;
    margin: 0 0 40px 0;
    position: relative;
}

.tbexp-progress-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.tbexp-progress-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(231, 231, 233, 0.6);
    transform: translateY(-50%);
    z-index: 1;
}

.tbexp-progress-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: rgb(242, 5, 5);
    transform: translateY(-50%);
    z-index: 1;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tbexp-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
}

.tbexp-step-indicator:hover {
    transform: translateY(-3px);
}

.tbexp-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(231, 231, 233, 0.4);
    border: 2px solid rgba(231, 231, 233, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(23, 20, 38, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 8px;
}

.tbexp-step-icon {
    display: block;
    transition: all 0.3s ease;
}

.tbexp-step-check {
    display: none;
    font-size: 18px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    position: absolute;
    animation: tbexpCheckmarkPop 0.4s ease forwards;
}

.tbexp-step-label {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(23, 20, 38, 0.6);
    text-align: center;
    margin-top: 5px;
    transition: all 0.3s ease;
}

/* PROGRESS BAR - ACTIVE STATE */
.tbexp-step-indicator.tbexp-step-active .tbexp-step-circle {
    background: rgba(242, 5, 5, 0.1);
    border-color: rgb(242, 5, 5);
    color: rgb(242, 5, 5);
    animation: tbexpPulse 2s infinite;
    transform: scale(1.1);
}

.tbexp-step-indicator.tbexp-step-active .tbexp-step-label {
    color: rgb(242, 5, 5);
    font-weight: 400;
}

/* PROGRESS BAR - COMPLETED STATE */
.tbexp-step-indicator.tbexp-step-completed .tbexp-step-circle {
    background: rgb(242, 5, 5);
    border-color: rgb(242, 5, 5);
    color: rgb(255, 255, 255);
    transform: scale(1.05);
}

.tbexp-step-indicator.tbexp-step-completed .tbexp-step-icon {
    opacity: 0;
    transform: scale(0);
}

.tbexp-step-indicator.tbexp-step-completed .tbexp-step-check {
    display: block;
}

.tbexp-step-indicator.tbexp-step-completed .tbexp-step-label {
    color: rgb(242, 5, 5);
    font-weight: 400;
}

/* PROGRESS LINE */
.tbexp-progress-line {
    flex: 1;
    height: 2px;
    background: rgba(231, 231, 233, 0.6);
    margin: 0 15px;
    position: relative;
    z-index: 1;
}

/* ============ INLINE VALIDATION STYLES ============ */
.tbexp-field-wrapper {
    position: relative;
}

.tbexp-dropdown-wrapper {
    position: relative;
}

.tbexp-field-error {
    display: none;
    color: rgb(242, 5, 5);
    font-size: 12px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    margin-top: 5px;
    padding: 4px 8px;
    background: rgba(242, 5, 5, 0.05);
    border: 1px solid rgba(242, 5, 5, 0.15);
    border-radius: 0px;
    animation: tbexpFieldErrorSlide 0.3s ease;
}

.tbexp-field-invalid {
    border-color: rgb(242, 5, 5) !important;
    background: rgba(242, 5, 5, 0.02) !important;
    animation: tbexpShake 0.5s ease;
}

.tbexp-equipment-validation-error {
    margin-top: 15px;
    font-size: 14px;
    padding: 10px 15px;
    border-left: 3px solid rgb(242, 5, 5);
}

/* ============ TOAST NOTIFICATIONS ============ */
.tbexp-toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
}

.tbexp-toast {
    background: rgb(255, 255, 255);
    border: 1px solid rgba(231, 231, 233, 0.8);
    border-radius: 0px;
    padding: 15px 20px;
    margin-bottom: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgb(23, 20, 38);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tbexp-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.tbexp-toast-success {
    border-left: 4px solid #28a745;
}

.tbexp-toast-warning {
    border-left: 4px solid #ffc107;
}

.tbexp-toast-error {
    border-left: 4px solid rgb(242, 5, 5);
}

.tbexp-toast-info {
    border-left: 4px solid #17a2b8;
}


/* ============ BASIC SELECTION - TERMIN + OSOBY (70/30) ============ */
.tbexp-basic-selection {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.tbexp-term-section {
    flex: 2.3; /* 70% szerokości */
}

.tbexp-persons-section {
    flex: 1; /* 30% szerokości */
}

.tbexp-term-section h4,
.tbexp-persons-section h4 {
    color: #171426;
    font-size: 24px; /* WIĘKSZY FONT JAK W STICKY */
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    margin: 0 0 10px 0;
}

.tbexp-term-section select,
.tbexp-persons-section select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgb(231, 231, 233);
    border-radius: 0px;
    font-size: 18px;
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    background: rgb(255, 255, 255);
    color: rgb(23, 20, 38);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23171426'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    transition: all 0.3s ease;
}

.tbexp-term-section select:focus,
.tbexp-persons-section select:focus {
    outline: none;
    border-color: #DA0001;
}

/* ============ ENHANCED FIELD STYLES FOR VALIDATION ============ */
.tbexp-field {
    transition: all 0.3s ease;
}

.tbexp-field:focus {
    border-color: rgb(242, 5, 5);
    outline: none;
}

.tbexp-field.tbexp-field-invalid:focus {
    border-color: rgb(242, 5, 5);
    box-shadow: 0 0 0 2px rgba(242, 5, 5, 0.1);
}

/* ============ MESSAGES & HELP ============ */
.tbexp-message {
    display: none;
    color: rgb(242, 5, 5);
    font-size: 14px;
    margin-top: 8px;
    background: rgba(242, 5, 5, 0.05);
    padding: 8px 12px;
    border: 1px solid rgba(242, 5, 5, 0.15);
    border-radius: 0px;
    font-family: 'Jost', sans-serif;
}

.tbexp-help-text {
    display: block;
    margin-top: 5px;
    color: rgba(23, 20, 38, 0.7);
    font-family: 'Jost', sans-serif;
    font-size: 12px; /* MNIEJSZY DLA 30% KOLUMNY */
}

.tbexp-equipment-message {
    display: none;
    color: rgb(242, 5, 5);
    background: rgba(242, 5, 5, 0.05);
    padding: 12px 15px;
    border: 1px solid rgba(242, 5, 5, 0.15);
    border-radius: 0px;
    margin-bottom: 15px;
    font-family: 'Jost', sans-serif;
    font-weight: 200;
}

/* ============ EQUIPMENT PRODUCTS ============ */
.tbexp-equipment-product {
    background: rgb(255, 255, 255);
    border: 1px solid rgb(231, 231, 233);
    border-radius: 0px;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-20px);
    animation: tbexpSlideInProduct 0.5s ease forwards;
}

.tbexp-equipment-product:hover {
    border-color: rgba(242, 5, 5, 0.2);
    box-shadow: 0 4px 16px rgba(242, 5, 5, 0.1);
    transform: translateY(-2px);
}

.tbexp-product-image {
    flex: 0 0 80px;
}

.tbexp-image-wrapper {
    border: 1px solid rgb(231, 231, 233);
    border-radius: 0px;
    overflow: hidden;
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

.tbexp-image-wrapper:hover {
    transform: scale(1.05);
}

.tbexp-product-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tbexp-product-info {
    flex: 1;
    padding-right: 20px;
}

.tbexp-product-name {
    color: rgb(23, 20, 38);
    font-size: 18px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    margin: 0 0 5px 0;
}

/* ZMIENIONA - DOPŁATA INLINE - MNIEJSZA I LŻEJSZA */
.tbexp-fee-inline {
    color: #dc3545;
    font-weight: 300; /* ZMIENIONE Z normal NA 300 */
    font-size: 14px; /* ZMIENIONE Z 16px NA 14px */
    font-family: 'Jost', sans-serif;
    margin-left: 8px;
    display: inline;
    opacity: 0.9; /* DODANE - delikatne przyciemnienie */
}

.tbexp-product-desc {
    color: rgba(23, 20, 38, 0.7);
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

/* STARY STYL DOPŁAT - UKRYTY */
.tbexp-fee-badge {
    display: none; /* UKRYTY - UŻYWAMY NOWEGO INLINE */
}

/* ============ NOWY LAYOUT DOSTĘPNOŚĆ + PRZYCISK ZOBACZ ============ */
.tbexp-availability-actions-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 12px;
    gap: 15px;
}

.tbexp-availability-section {
    flex: 1;
    min-width: 0;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.tbexp-availability-section strong {
    color: rgb(23, 20, 38);
    font-weight: 400;
}

.tbexp-view-action {
    flex-shrink: 0;
    margin-top: 0; /* USUNIĘTY MARGINES - TERAZ W JEDNEJ LINII */
}

.tbexp-view-product-link {
    background: none;
    border: none;
    color: rgb(23, 20, 38);
    font-size: 13px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.tbexp-view-product-link:hover {
    color: rgb(220, 4, 4);
    text-decoration: underline;
    transform: translateX(2px);
}

.tbexp-view-product-link:focus {
    outline: none;
    color: rgb(220, 4, 4);
}

/* ============ DROPDOWNS SPRZĘTU - UPROSZCZONE ============ */
.tbexp-product-controls {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 5px;
}

.tbexp-product-dropdowns {
    width: 100%;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* PROSTY PRODUKT - KOMPAKTOWY LAYOUT */
.tbexp-simple-item-compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 8px;
    min-height: 28px;
}

.tbexp-equipment-dropdown-compact {
    width: 65px;
    padding: 6px 10px;
    font-size: 13px;
    min-height: 28px;
    line-height: 1.3;
    text-align: center;
    border: 1px solid rgb(231, 231, 233);
    border-radius: 0px;
    font-family: 'Jost', sans-serif;
    background: rgb(255, 255, 255);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23171426'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    transition: all 0.3s ease;
}

.tbexp-equipment-dropdown-compact:focus {
    outline: none;
    border-color: #DA0001;
    transform: scale(1.02);
}

.tbexp-equipment-dropdown-compact:disabled {
    background: rgba(231, 231, 233, 0.3);
    color: rgba(23, 20, 38, 0.5);
    cursor: not-allowed;
}

/* VARIANT DROPDOWNS - KOMPAKTOWE */
.tbexp-variant-item-compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 8px;
    min-height: 28px;
}

.tbexp-variant-item-compact:last-child {
    margin-bottom: 0;
}

.tbexp-variant-label-compact {
    font-size: 12px;
    color: rgb(23, 20, 38);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    text-align: right;
    width: 32px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* UKRYJ STARĄ WERSJĘ DROPDOWNÓW */
.tbexp-equipment-dropdown:not(.tbexp-equipment-dropdown-compact) {
    display: none;
}

/* UKRYJ STARE ELEMENTY LAYOUTU */
.tbexp-stock-actions-row {
    display: none; /* UKRYTE - NOWY LAYOUT */
}

.tbexp-view-product {
    display: none; /* UKRYJ STARY PRZYCISK */
}

.tbexp-equipment-product .tbexp-stock-info {
    display: none; /* UKRYJ STARY STOCK INFO */
}

/* ============ REQUIRED SUMMARY ============ */
.tbexp-required-summary {
    margin-top: 20px;
    padding: 15px;
    background: rgba(23, 20, 38, 0.02);
    border: 1px solid rgba(23, 20, 38, 0.08);
    border-radius: 0px;
    transition: all 0.3s ease;
}

.tbexp-summary-item {
    margin-bottom: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    color: rgb(23, 20, 38);
}

.tbexp-summary-item:last-child {
    margin-bottom: 0;
}

/* NOWE - KOMUNIKATY WALIDACJI W STICKY */
.tbexp-equipment-validation {
    margin-bottom: 12px;
    padding: 8px 0;
    font-size: 13px;
    font-family: 'Jost', sans-serif;
    color: rgb(23, 20, 38);
    border-bottom: 1px solid rgba(231, 231, 233, 0.3);
}

/* SEKCJA SPRZĘTU NIEZBĘDNEGO */
.tbexp-summary-equipment {
    margin-bottom: 20px;
}

.tbexp-equipment-items {
    margin-bottom: 0;
}

/* NOWA - SEKCJA DODATKI */
.tbexp-summary-additionals {
    margin-bottom: 20px;
}

.tbexp-additionals-items {
    margin-bottom: 0;
}

.tbexp-equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: rgb(23, 20, 38);
    border-bottom: 1px solid rgba(231, 231, 233, 0.3);
    animation: tbexpFadeIn 0.4s ease forwards;
}

.tbexp-equipment-item:last-child {
    border-bottom: none;
}

.tbexp-equipment-name {
    flex: 1;
    min-width: 0;
}

.tbexp-equipment-qty {
    color: rgba(23, 20, 38, 0.7);
    margin-right: 10px;
}

.tbexp-equipment-price {
    font-weight: 300;
    color: rgb(242, 5, 5);
}

.tbexp-summary-total {
    border-top: 2px solid rgba(231, 231, 233, 0.8);
    padding-top: 15px;
    margin-top: 20px;
}

.tbexp-summary-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 15px;
    color: rgb(23, 20, 38);
}

.tbexp-summary-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 300;
    color: rgb(242, 5, 5);
    padding-top: 10px;
    border-top: 1px solid rgba(231, 231, 233, 0.5);
    margin-top: 10px;
}

.tbexp-summary-actions {
    margin-top: 25px;
}

.tbexp-add-cart-btn-sticky {
    width: 100%;
    background: rgb(242, 5, 5);
    color: rgb(255, 255, 255);
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 300;
    font-family: 'Jost', sans-serif;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tbexp-add-cart-btn-sticky:hover {
    background: rgb(220, 4, 4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 5, 5, 0.3);
}

.tbexp-add-cart-btn-sticky:disabled {
    background: rgba(23, 20, 38, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tbexp-add-cart-btn-sticky.tbexp-loading {
    color: transparent;
}

.tbexp-add-cart-btn-sticky.tbexp-loading .tbexp-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============ MODAL STYLES ============ */
.tbexp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 20, 38, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    animation: tbexpModalFadeIn 0.3s ease;
}

.tbexp-modal-content {
    background: rgb(255, 255, 255);
    border-radius: 0px;
    padding: 0;
    max-width: 95%;
    width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(23, 20, 38, 0.15);
    animation: tbexpModalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px;
}

.tbexp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(231, 231, 233, 0.5);
    background: rgba(23, 20, 38, 0.02);
}

.tbexp-modal-header h3 {
    color: rgb(23, 20, 38);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 22px;
    margin: 0;
}

.tbexp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(23, 20, 38, 0.6);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tbexp-modal-close:hover {
    color: rgb(242, 5, 5);
    background: rgba(242, 5, 5, 0.08);
    border-radius: 50%;
    transform: rotate(90deg);
}

.tbexp-modal-body {
    padding: 30px;
}

/* GALERIA - ADAPTIVE */
.tbexp-modal-gallery {
    margin-bottom: 25px;
}

.tbexp-single-image {
    text-align: center;
}

.tbexp-single-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(231, 231, 233, 0.5);
}

.tbexp-gallery-main {
    text-align: center;
    margin-bottom: 15px;
}

.tbexp-main-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border: 1px solid rgba(231, 231, 233, 0.5);
    transition: all 0.3s ease;
}

.tbexp-gallery-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tbexp-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
}

.tbexp-thumb.active,
.tbexp-thumb:hover {
    border-color: rgb(242, 5, 5);
    transform: scale(1.1);
}

.tbexp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MODAL INFO */
.tbexp-modal-info h4 {
    color: rgb(23, 20, 38);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 18px;
    margin: 0 0 15px 0;
    border-bottom: 1px solid rgba(231, 231, 233, 0.3);
    padding-bottom: 8px;
}

.tbexp-modal-description {
    margin-bottom: 25px;
}

.tbexp-modal-variants {
    margin-bottom: 20px;
}

.tbexp-variant-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(231, 231, 233, 0.3);
    font-family: 'Jost', sans-serif;
}

.tbexp-variant-info:last-child {
    border-bottom: none;
}

.tbexp-variant-name {
    font-weight: 300;
    color: rgb(23, 20, 38);
}

.tbexp-variant-stock {
    font-size: 14px;
    font-weight: 200;
}

/* ============ HELPER CLASSES ============ */
.tbexp-summary-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: all 0.4s ease;
}

.tbexp-summary-hidden:not(.tbexp-summary-hidden) {
    opacity: 1;
    max-height: none;
}

/* ============ RESPONSIVE LAYOUT ============ */

/* TABLET LAYOUT */
@media (max-width: 1024px) {
    .tbexp-main-layout {
        gap: 30px;
    }
    
    .tbexp-configurator-column {
        flex: 2; /* 66% */
    }
    
    .tbexp-summary-column {
        flex: 1; /* 33% */
        top: 40px;
    }
    
    .tbexp-basic-selection {
        gap: 20px;
    }
    
    .tbexp-product-controls {
        flex: 0 0 120px;
    }
    
    .tbexp-variant-item-compact {
        gap: 10px;
        margin-bottom: 7px;
        min-height: 26px;
    }
    
    .tbexp-variant-label-compact {
        font-size: 11px;
        width: 28px;
    }
    
    .tbexp-equipment-dropdown-compact {
        width: 55px;
        padding: 5px 8px;
        font-size: 12px;
        min-height: 26px;
    }
    
    /* RESPONSIVE DOSTĘPNOŚĆ + PRZYCISK */
    .tbexp-availability-actions-row {
        gap: 12px;
    }
    
    .tbexp-view-product-link {
        font-size: 12px;
    }
    
    /* PROGRESS BAR TABLET */
    .tbexp-progress-bar {
        padding: 20px 25px;
    }
    
    .tbexp-step-circle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .tbexp-step-label {
        font-size: 11px;
    }
    
    /* TOAST TABLET */
    .tbexp-toast-container {
        top: 90px;
        right: 15px;
        max-width: 300px;
    }
}



/* SMALL MOBILE */
@media (max-width: 480px) {
    .tbexp-main-layout {
        gap: 15px;
    }
    
    .tbexp-basic-selection {
        gap: 15px;
    }
    
    .tbexp-term-section h4,
    .tbexp-persons-section h4 {
        font-size: 20px;
    }
    
    .tbexp-term-section select,
    .tbexp-persons-section select {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .tbexp-equipment-product {
        padding: 15px;
        margin: 10px 0;
    }
    
    .tbexp-variant-item-compact {
        gap: 8px;
        margin-bottom: 6px;
        min-height: 24px;
        justify-content: flex-end;
    }
    
    .tbexp-variant-label-compact {
        font-size: 10px;
        width: 24px;
        text-align: right;
    }
    
    .tbexp-equipment-dropdown-compact {
        width: 50px;
        padding: 4px 6px;
        font-size: 11px;
        min-height: 24px;
    }
    
    /* SMALL MOBILE DOSTĘPNOŚĆ + PRZYCISK */
    .tbexp-availability-actions-row {
        gap: 6px;
    }
    
    .tbexp-view-product-link {
        font-size: 11px;
    }
    
    /* PROGRESS BAR SMALL MOBILE */
    .tbexp-progress-bar {
        padding: 12px 15px;
    }
    
    .tbexp-step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .tbexp-step-label {
        font-size: 9px;
    }
    
    .tbexp-progress-line {
        margin: 0 8px;
    }
}

/* ============ POZOSTAŁE STYLE Z ORYGINALNEGO ============ */

.tbexp-expedition-configurator {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 30px 0;
    margin: 30px 0;
    box-shadow: none;
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    color: #171426;
    max-width: 100%;
}

.tbexp-info-header {
    text-align: left;
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

.tbexp-info-header h3 {
    color: #171426;
    font-size: 24px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tbexp-step {
    background: transparent;
    border-radius: 0;
    padding: 20px 0;
    margin: 20px 0;
    border: none;
    box-shadow: none;
    border-bottom: none;
}

.tbexp-step:last-child {
    border-bottom: none;
}

.tbexp-step h4 {
    color: #171426;
    margin: 0 0 15px 0;
    font-size: 24px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.tbexp-error {
    background: rgba(218, 0, 1, 0.05);
    color: #DA0001;
    padding: 12px 15px;
    border: 1px solid rgba(218, 0, 1, 0.15);
    border-radius: 3px;
    margin: 15px 0;
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    box-shadow: none;
}

.tbexp-no-config {
    background: rgba(255, 193, 7, 0.08);
    color: rgba(23, 20, 38, 0.8);
    padding: 20px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 3px;
    margin: 15px 0;
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    box-shadow: none;
}

/* ============ ANIMATIONS ============ */
@keyframes tbexpSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes tbexpModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tbexpModalSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-40px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes tbexpPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

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

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

@keyframes tbexpSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
        max-height: 0;
    }
}

@keyframes tbexpFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes tbexpFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes tbexpSlideInProduct {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tbexpSuccessShow {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes tbexpCheckmarkPop {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tbexpShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Focus States */
.tbexp-view-product-link:focus,
.tbexp-modal-close:focus {
    outline: 2px solid rgba(242, 5, 5, 0.3);
    outline-offset: 1px;
}


.tbexp-toast,
.tbexp-equipment-product:hover,
.tbexp-add-cart-btn-sticky:hover {
    box-shadow: initial !important;
}

/* ============ CSS VARIABLES FOR DYNAMIC PROGRESS ============ */
:root {
    --tbexp-progress-width: 0%;
}

.tbexp-progress-track::after {
    width: var(--tbexp-progress-width);
}

/* ============ REDUCED MOTION SUPPORT ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .tbexp-step-indicator:hover {
        transform: none;
    }
    
    .tbexp-equipment-product:hover {
        transform: none;
    }
}

/* NOWY - Disabled button state */
.tbexp-add-cart-btn-sticky.tbexp-disabled,
.tbexp-add-cart-btn-sticky:disabled {
    background: rgba(23, 20, 38, 0.3) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile First Approach */
/* ===== TOAST NOTIFICATIONS ===== */

#tbexp-toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    max-width: 400px !important;
}

.tbexp-toast {
    background: rgba(0,0,0,0.85) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    margin-bottom: 10px !important;
    opacity: 0 !important;
    transform: translateX(100%) !important;
    transition: all 0.4s ease !important;
    pointer-events: auto !important;
    font-size: 14px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: 1.4 !important;
}

.tbexp-toast-show {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.tbexp-toast-success {
    background: rgba(40, 167, 69, 0.95) !important;
    border-left: 4px solid #28a745 !important;
}

.tbexp-toast-error {
    background: rgba(220, 53, 69, 0.95) !important;
    border-left: 4px solid #dc3545 !important;
}

.tbexp-toast-warning {
    background: rgba(255, 193, 7, 0.95) !important;
    color: #212529 !important;
    border-left: 4px solid #ffc107 !important;
}

.tbexp-toast-info {
    background: rgba(23, 162, 184, 0.95) !important;
    border-left: 4px solid #17a2b8 !important;
}

/* Mobile responsive toasts */
@media (max-width: 768px) {
    #tbexp-toast-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }
    
    .tbexp-toast {
        margin-bottom: 8px !important;
        font-size: 13px !important;
        padding: 10px 16px !important;
    }
}
/* Equipment validation inline */
.tbexp-summary-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tbexp-equipment-validation {
    font-weight: normal;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* ============ NOWE - DOSTĘPNOŚĆ I DOPŁATY PRODUKTÓW ============ */

/* Enhanced Product Meta Layout */
.tbexp-product-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 12px 0;
    padding: 0;
}

.tbexp-availability {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.tbexp-availability-label {
    color: rgb(23, 20, 38); /* ✅ POPRAWIONE */
    font-weight: 400;
    flex-shrink: 0;
    min-width: 75px;
}

.tbexp-availability-value {
    color: rgb(23, 20, 38); /* ✅ ZMIENIONE Z rgba(23, 20, 38, 0.8) */
    font-weight: 200;
    flex: 1;
}

/* Stock Colors - override dla stanów */
.tbexp-availability-value:contains("Ostatnie"),
.tbexp-availability-value:contains("Brak") {
    color: #dc3545; /* Red for low/no stock */
}

.tbexp-availability-value:contains("Na zamówienie") {
    color: #ffc107; /* Orange for on-order */
}

/* Fee Display - już masz te style, ale upewnij się że są aktualne */
.tbexp-fee-inline {
    color: #dc3545;
    font-weight: 300;
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    margin-left: 8px;
    display: inline;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Product Actions Section */
.tbexp-product-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tbexp-view-product-link {
    background: none;
    border: none;
    color: rgb(23, 20, 38); /* ✅ POPRAWIONE */
    font-size: 13px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    line-height: 1.2;
    transition: all 0.3s ease;
    border-radius: 0;
}

.tbexp-view-product-link:hover {
    color: rgb(242, 5, 5); /* ✅ HOVER POZOSTAJE BEZ ZMIAN */
    text-decoration: underline;
    transform: translateX(2px);
}

.tbexp-view-product-link:focus {
    outline: 2px solid rgba(242, 5, 5, 0.3);
    outline-offset: 2px;
    color: rgb(242, 5, 5);
}

/* ============ ENHANCED DROPDOWNS Z FEE DATA ============ */

/* Dropdown Enhanced Data Attributes Support */
.tbexp-equipment-dropdown-compact[data-fee-type="per_person"]::after {
    content: '/os';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(23, 20, 38, 0.5);
    pointer-events: none;
    z-index: 1;
}

.tbexp-equipment-dropdown-compact {
    position: relative;
    /* Pozostałe style już masz */
}

/* ============ VARIABLE PRODUCT STOCK DISPLAY ============ */

/* Enhanced availability for variable products */
.tbexp-availability-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Breakpoint for longer variant names */
@media (min-width: 769px) {
    .tbexp-availability-value {
        max-width: 250px;
        white-space: normal;
    }
}

/* ============ ENHANCED DROPDOWN DATA VISUALIZATION ============ */

/* Stock-based coloring for dropdown options */
.tbexp-equipment-dropdown-compact option:disabled {
    color: rgba(23, 20, 38, 0.3);
    background-color: rgba(231, 231, 233, 0.1);
}

/* Fee visualization in dropdowns */
.tbexp-equipment-dropdown-compact[data-fee="0"] {
    border-color: rgba(40, 167, 69, 0.3);
}

.tbexp-equipment-dropdown-compact[data-fee]:not([data-fee="0"]) {
    border-color: rgba(242, 5, 5, 0.2);
}

.tbexp-equipment-dropdown-compact[data-fee]:not([data-fee="0"]):focus {
    border-color: rgb(242, 5, 5);
    box-shadow: 0 0 0 2px rgba(242, 5, 5, 0.1);
}

/* ============ RESPONSIVE ENHANCEMENTS FOR NEW ELEMENTS ============ */

@media (max-width: 768px) {
    .tbexp-product-meta {
        gap: 4px;
        margin: 6px 0 10px 0;
    }
    
    .tbexp-availability {
        flex-direction: column;
        gap: 2px;
    }
    
    .tbexp-availability-label {
        min-width: auto;
        font-size: 12px;
    }
    
    .tbexp-availability-value {
        font-size: 12px;
        max-width: 100%;
    }
    
    .tbexp-view-product-link {
        font-size: 12px;
    }
    
    .tbexp-fee-inline {
        font-size: 13px;
        margin-left: 4px;
        display: block;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .tbexp-availability {
        font-size: 11px;
    }           
    
    .tbexp-availability-label,
    .tbexp-availability-value {
        font-size: 11px;
    }
    
    .tbexp-view-product-link {
        font-size: 11px;
    }
    
    .tbexp-fee-inline {
        font-size: 12px;
        display: block;
        margin-left: 0;
        margin-top: 3px;
    }
}

/* ============ LOADING STATES FOR ENHANCED ELEMENTS ============ */

.tbexp-product-meta.tbexp-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tbexp-product-meta.tbexp-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

/* ============ SUCCESS STATES FOR NEW ELEMENTS ============ */

.tbexp-availability.tbexp-success {
    color: #28a745;
    font-weight: 400;
}

.tbexp-view-product-link.tbexp-success {
    color: #28a745;
}

.tbexp-fee-inline.tbexp-success {
    color: #28a745;
}

/* ============ ANIMATION FOR NEW ELEMENTS ============ */

.tbexp-product-meta {
    animation: tbexpSlideIn 0.4s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.tbexp-equipment-product:not(.tbexp-step-hidden) .tbexp-product-meta {
    opacity: 1;
}

/* ============ ACCESSIBILITY IMPROVEMENTS ============ */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tbexp-availability-label {
        font-weight: 600;
    }
    
    .tbexp-fee-inline {
        font-weight: 500;
        opacity: 1;
    }
    
    .tbexp-view-product-link {
        text-decoration: underline 2px;
    }
}

/* Focus improvements for accessibility */
.tbexp-availability:focus-within {
    outline: 2px solid rgba(242, 5, 5, 0.3);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ============ PRINT STYLES ============ */

@media print {
    .tbexp-view-product-link {
        display: none;
    }
    
    .tbexp-availability,
    .tbexp-fee-inline {
        color: black !important;
    }
    
    .tbexp-product-meta {
        border: 1px solid #ccc;
        padding: 5px;
        margin: 5px 0;
    }
}

/* ============ TOOLTIP-LIKE HOVER STATES ============ */

.tbexp-availability-value[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: rgba(23, 20, 38, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 2px;
    animation: tbexpFadeIn 0.2s ease;
}

/* ============ ENHANCED STATES FOR DATA ATTRIBUTES ============ */

/* Visual feedback for different fee types */
.tbexp-equipment-product[data-has-fee="true"] {
    border-left: 3px solid rgba(242, 5, 5, 0.1);
}

.tbexp-equipment-product[data-has-fee="false"] {
    border-left: 3px solid rgba(40, 167, 69, 0.1);
}

/* Stock level visual indicators */
.tbexp-equipment-product[data-stock-level="low"] .tbexp-availability-value {
    color: #dc3545;
    font-weight: 400;
}

.tbexp-equipment-product[data-stock-level="medium"] .tbexp-availability-value {
    color: #ffc107;
    font-weight: 400;
}

.tbexp-equipment-product[data-stock-level="high"] .tbexp-availability-value {
    color: #28a745;
    font-weight: 400;
}

/* TB Expeditions Cart Display Styles */
/* TBEXP cart/minicart layout */
.tbexp-cart-block { display: block; line-height: 1.35; }
.tbexp-cart-block .tbexp-line { display: block; margin: 0; }
.tbexp-cart-title { text-decoration: none; }

/* Sprzęt/Dodatki – listy */
.tbexp-eq-header { margin-top: .35rem; font-weight: 600; }
.tbexp-eq-list { margin: .15rem 0 .35rem 1.1rem; padding: 0; list-style: disc; }
.tbexp-eq-list li { margin: 0; padding: 0; }

/* Mini‑cart: 2 kolumny – content po lewej, qty po prawej */
.widget_shopping_cart_content .mini_cart_item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: .75rem;
}
.widget_shopping_cart_content .mini_cart_item .tbexp-cart-block {
  grid-column: 1 / 2;
  text-align: left;
}
.widget_shopping_cart_content .mini_cart_item .quantity {
  grid-column: 2 / 3;
  text-align: right;
  white-space: nowrap;
}

/* Znieś ewentualne wyśrodkowania z motywu */
.widget_shopping_cart_content .mini_cart_item,
.widget_shopping_cart_content .mini_cart_item * {
  text-align: initial;
}

/* Usuń pseudo-ikonki jeśli motyw dodaje */
.woocommerce-cart .product-name .tbexp-cart-block::before,
.widget_shopping_cart_content .mini_cart_item .tbexp-cart-block::before {
  content: none !important;
}

.tbexp-order-summary .tbexp-order-block { padding: 16px; border: 1px solid #eee; margin: 12px 0; border-radius: 6px; }
.tbexp-order-summary .tbexp-item-title { margin: 0 0 8px; font-size: 1.1rem; }
.tbexp-order-summary .tbexp-list { list-style: none; margin: 0; padding: 0; }
.tbexp-order-summary .tbexp-list li { margin: 4px 0; }

.tbexp-optional-equipment-list {
    margin: 30px 0;
    font-weight: 200;
    font-size: 16px;
}
.tbexp-optional-equipment-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    font-size: 1em;
    font-weight: 200;
    color: inherit;
    gap: 16px;
}
.tbexp-optional-equipment-row:last-child {
    border-bottom: none;
}
.tbexp-equipment-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}
.tbexp-equipment-thumbnail img,
.tbexp-equipment-thumbnail picture img {
    width: 49px;
    height: 49px;
    border-radius: 0 !important;
    object-fit: contain;
    background: #fff;
    border: none !important;
    box-shadow: none;
    display: block;
}
.tbexp-equipment-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    font-weight: 300;
    color: inherit;
}
.tbexp-equipment-name {
    font-size: 1.2em;
    font-weight: 200;
    line-height: 1.3;
    color: inherit;
    word-break: break-word;
}
.tbexp-equipment-desc {
    font-size: 1em;
    color: inherit;
    line-height: 1.3;
    font-weight: 200;
    word-break: break-word;
}
.tbexp-equipment-price {
    font-weight: 300;
    font-size: 1em;
    min-width: 85px;
    color: inherit;
    white-space: nowrap;
    text-align: right;
    align-self: flex-start;
    margin-left: 10px;
}
@media (max-width: 768px) {
    .tbexp-optional-equipment-row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 10px 8px;
    }
    .tbexp-equipment-thumbnail {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }
    .tbexp-equipment-details {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
    }
    .tbexp-equipment-price {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
        text-align: left;
        margin-left: 0;
        margin-top: 3px;
    }
}


/* WCAG 2.1 — Focus visible (bez zmiany layoutu) */
/* Bazowy, widoczny outline dla elementów interaktywnych */
:where(a, button, input, select, textarea, [role="button"], [href], [tabindex]:not([tabindex="-1"])):focus {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

/* Ukryj outline dla klików myszy w przeglądarkach wspierających :focus-visible */
:where(a, button, input, select, textarea, [role="button"], [href], [tabindex]:not([tabindex="-1"])):focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Preferuj :focus-visible tam gdzie dostępne (dla klawiatury) */
:where(a, button, input, select, textarea, [role="button"], [href], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.35);
}

/* Elementy w kontenerach, które mogą przycinać obrys (overflow/zaokrąglenia):
   rysuj pierścień do środka, aby nie był wycinany */
.tbexp-toast :is(a, button, input, select, textarea, [role="button"], [href], [tabindex]:not([tabindex="-1"])):focus,
.tbexp-toast :is(a, button, input, select, textarea, [role="button"], [href], [tabindex]:not([tabindex="-1"])):focus-visible,
.tbexp-thumb:focus,
.tbexp-thumb:focus-visible,
.tbexp-equipment-item:focus,
.tbexp-equipment-item:focus-visible {
  outline-color: transparent;
  outline-offset: -2px;              /* do wewnątrz, aby nie był wycinany */
  box-shadow: inset 0 0 0 2px #0a84ff;
}

/* Przyciski w modalu (np. zamknięcie) – zapewnij wyraźny focus */
.tbexp-modal-close:focus,
.tbexp-modal-close:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

/* Linki/przyciski w pasku postępu i listach – zachowaj spójny focus */
.tbexp-step-indicator :is(a, button):focus,
.tbexp-step-indicator :is(a, button):focus-visible,
.tbexp-variant-info :is(a, button):focus,
.tbexp-variant-info :is(a, button):focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

/* Formularze i kontrolki w tabelach/sekcjach – przewidywalny, nieprzycinany ring */
.tbexp-summary-column :is(input, select, textarea, button, [tabindex]:not([tabindex="-1"])):focus,
.tbexp-summary-column :is(input, select, textarea, button, [tabindex]:not([tabindex="-1"])):focus-visible,
.tbexp-configurator-column :is(input, select, textarea, button, [tabindex]:not([tabindex="-1"])):focus,
.tbexp-configurator-column :is(input, select, textarea, button, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

/* Jeżeli element sam ma overflow: hidden (np. miniatury) – ring do środka */
:where(.tbexp-thumb, .tbexp-toast, .tbexp-step, .tbexp-equipment-item)[tabindex]:focus,
:where(.tbexp-thumb, .tbexp-toast, .tbexp-step, .tbexp-equipment-item)[tabindex]:focus-visible {
  outline-color: transparent;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 2px #0a84ff;
}




/* CTA na dole ekranu, sterowane klasami .is-visible oraz .mode-scroll/.mode-submit */
.tbexp-mobile-cta{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0) + 16px);
  z-index: 10000;
  display: none;
  padding: 14px 18px;          /* tap-target >=44px */
  border: 0;
  border-radius: 5px;          /* zostawiam zgodnie z brand */
  color: #fff;
  background: #F20505;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.tbexp-mobile-cta.is-visible{
  display: inline-block;
  opacity: 1;
  pointer-events: auto;
}
.tbexp-mobile-cta:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.45), 0 6px 14px rgba(0,0,0,.18);
}

/* Stany */
.tbexp-mobile-cta.mode-scroll{ background:#171426; }
.tbexp-mobile-cta.mode-submit{ background:#F20505; }

/* Ogranicz animacje, gdy użytkownik preferuje mniej ruchu */
@media (prefers-reduced-motion: reduce){
  .tbexp-mobile-cta{ transition: none; }
}

/* Tylko mobile – widoczność steruje JS przez .is-visible */
@media (min-width: 768px){
  .tbexp-mobile-cta{ display:none !important; }
}


/* Mobile quantity control for required equipment */
.tbexp-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.tbexp-qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #D9D9D9;
  background: #fff;
  color: #111;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  user-select: none;
}

/* Ukrycie oryginalnego selecta, ale pozostaje w DOM do submitu i zdarzeń */
select.tbexp-qty-source {
  position: absolute !important;
  left: -9999px !important;
}

.tbexp-qty { display:flex; align-items:center; gap:8px; }

.tbexp-qty-btn { width:40px; height:40px; font-size:20px; line-height:1; border-radius:8px; }

.tbexp-qty-value { width:56px; text-align:center; font-weight:600; }

.tbexp-qty-source { position:absolute; left:-9999px; }

.tbexp-field-success { outline:2px solid #2ecc71; outline-offset:2px; transition:outline-color .2s; }


/* ====== TBEXP: Unifikacja kontrolek ilości (Sprzęt/ Dodatki) ====== */

/* Baza (już masz) – rozszerzamy tylko hover/active i spójny wygląd */
.tbexp-qty { display:flex; align-items:center; gap:8px; margin:8px 0; }
.tbexp-qty-btn {
  width:44px; height:44px; border-radius:10px;
  border:1px solid #D9D9D9; background:#fff; color:#111;
  font-size:24px; line-height:1; display:inline-flex; align-items:center; justify-content:center;
  touch-action:manipulation; user-select:none; transition:background-color .15s ease, border-color .15s ease, transform .06s ease;
}
.tbexp-qty-btn:hover { background:#fafafa; border-color:#cfcfcf; }
.tbexp-qty-btn:active { transform:scale(0.98); }
.tbexp-qty-value {
  width:56px; height:44px; border-radius:10px;
  border:1px solid #D9D9D9; background:#F7F7F7;
  text-align:center; font-size:16px; color:#111; font-weight:600;
}

/* Wariant kompaktowy – używany dla Dodatków (mobile) */
.tbexp-qty.tbexp-qty--compact { gap:6px; margin:6px 0; }
.tbexp-qty.tbexp-qty--compact .tbexp-qty-btn { width:36px; height:36px; font-size:18px; border-radius:8px; }
.tbexp-qty.tbexp-qty--compact .tbexp-qty-value { width:52px; height:36px; font-size:15px; border-radius:8px; }

/* Ukrycie natywnego selecta przy enhancerze qty */
select.tbexp-qty-source { position:absolute !important; left:-9999px !important; }

/* Spójny styl selectów (desktop) w sekcjach Required i Additional */
#tbexp-step-required .tbexp-equipment-dropdown,
#tbexp-step-additional .tbexp-equipment-dropdown {
  height:44px; line-height:44px; padding:0 12px 0 12px;
  border:1px solid #D9D9D9; border-radius:10px; background:#fff; color:#111;
  font-size:16px; -webkit-appearance:none; appearance:none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center; padding-right:34px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
#tbexp-step-required .tbexp-equipment-dropdown:hover,
#tbexp-step-additional .tbexp-equipment-dropdown:hover {
  border-color:#cfcfcf;
}
#tbexp-step-required .tbexp-equipment-dropdown:focus-visible,
#tbexp-step-additional .tbexp-equipment-dropdown:focus-visible {
  outline:2px solid #0a84ff; outline-offset:2px;
  box-shadow:0 0 0 2px rgba(10,132,255,.35);
}

.tbexp-equipment-dropdown.tbexp-field-disabled {
  opacity:.6; cursor:not-allowed; background-color:#f6f6f6;
}

/* Wyrównanie marginesów w kartach dodatków */
#tbexp-step-additional .tbexp-qty,
#tbexp-step-additional .tbexp-equipment-dropdown { margin-top:8px; }

/* Responsywne dopasowanie wysokości (opcja) */
@media (min-width: 768px) {
  .tbexp-qty-btn, .tbexp-qty-value { height:40px; }
  #tbexp-step-required .tbexp-equipment-dropdown,
  #tbexp-step-additional .tbexp-equipment-dropdown { height:40px; line-height:40px; }
}

/* Sukces po zmianie (spójny ring) */
.tbexp-field-success { outline:2px solid #2ecc71; outline-offset:2px; transition:outline-color .2s; }


.tbexp-mobile-cta .tbexp-cta{
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2px;
  text-align: left;
}
.tbexp-mobile-cta .tbexp-cta-amount{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.tbexp-mobile-cta .tbexp-cta-status{
  font-size: 12px;
  line-height: 1.2;
  opacity: .9;
}

/* Gdy CTA ma obok przycisk/boksy – wersja z dwiema kolumnami */
.tbexp-mobile-cta .tbexp-cta.tbexp-cta--2col{
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  align-items: center;
}

/* Safe-area na urządzeniach z notchem (CTA już korzysta, to doprecyzowanie linii statusu) */
@supports (padding: max(0px)){
  .tbexp-mobile-cta .tbexp-cta{ padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}


/* Na mobile: sticky u góry z cieniem */
@media (max-width: 767px) {
  #tbexp-mobile-progress {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0; /* zamiast top:0 */
    z-index: 99993;
    background: #fff;
    box-shadow: 0 -2px 16px rgba(0,0,0,.11);
    padding: 6px 0;
    display: none; /* Pokazywany przez JS */
    width: 100vw;
  }
  #tbexp-mobile-progress #tbexp-progress-bar {
    width: 94vw;
    margin: 0 auto;
    border-radius: 999px;
    height: 6px;
    background: #ececec;
    position: relative;
    overflow: hidden;
  }
  #tbexp-mobile-progress #tbexp-progress-bar::after {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: var(--tbexp-progress-width, 0%);
    background: linear-gradient(90deg, #f20505 0%, #fd5353 100%);
    transition: width 0.3s ease;
  }
}

@media (max-width: 767px) {
  /* Dla paska progresu w konfiguratorze */

	#tbexp-progress-bar {
    display: none !important;
  }
}
.tbexp-summary-column { min-height: calc(100vh - var(--adminbar-offset, 0px) - var(--sticky-header-offset, 80px) - 24px); }

/* ================= TBEXP – LAYOUT + STICKY SUMMARY (CLEAN, FULL) ================= */

/* Minimalna wysokość panelu dla stabilizacji animacji */
#tbexp-sticky-summary { min-height: 320px; }

/* ============ MAIN LAYOUT - 60/40 SPLIT ============ */
.tbexp-main-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.tbexp-configurator-column {
  flex: 3; /* ~60% szerokości */
  min-width: 0;
}

/* 1) Kolumna podsumowania – bez sticky na kolumnie, bez overflow blokującego */
.tbexp-summary-column {
  position: relative;
  overflow: visible;
  padding-bottom: 40px; /* bufor, by panel nie ocierał sekcji niżej */
  /* zapewnij miejsce dla sticky (room check dodatnie) */
  min-height: calc(100vh - var(--adminbar-offset, 0px) - var(--sticky-header-offset, 80px) - 24px);
}

/* 2) Sticky tylko na samym panelu (#id ma najwyższą specyficzność) */
#tbexp-sticky-summary {
  position: sticky;
  top: calc(var(--adminbar-offset, 0px) + var(--sticky-header-offset, 80px) + 16px);
  z-index: 5;
  background: #fff;
}

/* 3) Jeśli chcesz przewijanie treści, to tylko wewnątrz panelu */
#tbexp-sticky-summary .tbexp-sticky-inner {
  max-height: calc(100vh - var(--adminbar-offset, 0px) - var(--sticky-header-offset, 80px) - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============ STICKY SUMMARY - UI (bez pozycji) ============ */
.tbexp-sticky-summary {
  background: #fff;
  border: 1px solid rgb(231, 231, 233);
  border-radius: 0;
  padding: 25px;
  font-family: 'Jost', sans-serif;
  transition: all 0.3s ease;
}

.tbexp-summary-header h4 {
  color: rgb(23, 20, 38);
  font-size: 24px;
  font-weight: 300;
  margin: 0 0 5px 0;
}

.tbexp-summary-status {
  color: rgba(23, 20, 38, 0.6);
  font-size: 14px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.tbexp-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(231, 231, 233, 0.5);
  transition: all 0.3s ease;
}
.tbexp-summary-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.tbexp-summary-content { flex: 1; min-width: 0; width: 100%; }
.tbexp-summary-label { font-size: 14px; color: rgba(23, 20, 38, 0.7); margin-bottom: 2px; }
.tbexp-summary-value { font-size: 16px; color: rgb(23, 20, 38); font-weight: 300; }

.tbexp-summary-section-header {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 300;
  color: rgb(23, 20, 38);
  margin-bottom: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(231, 231, 233, 0.5);
}

/* ============ MOBILE LAYOUT ============ */
@media (max-width: 768px) {
  .tbexp-main-layout {
    flex-direction: column;
    gap: 20px;
  }

  .tbexp-configurator-column,
  .tbexp-summary-column {
    flex: none;
    width: 100%;
  }

  /* Na mobile nie rób sticky na kolumnie, panel sticky jest sterowany regułą #id powyżej */
  .tbexp-summary-column {
    background: #fff;
    border-radius: 0;
    order: -1; /* Summary first on mobile */
  }

  .tbexp-sticky-summary {
    padding: 20px;
    margin-bottom: 20px;
  }

  .tbexp-summary-header h4 { font-size: 20px; }

  .tbexp-summary-row {
    margin-bottom: 12px;
    padding: 8px 0;
  }

  .tbexp-add-cart-btn-sticky { padding: 12px 16px; font-size: 16px; }

  /* Dostosowania mobilne innych elementów UI */
  .tbexp-basic-selection { flex-direction: column; gap: 20px; }
  .tbexp-term-section, .tbexp-persons-section { flex: none; }
  .tbexp-equipment-product { flex-direction: column; align-items: center; text-align: center; gap: 15px; }
  .tbexp-product-content { flex-direction: column; align-items: center; gap: 15px; width: 100%; }
  .tbexp-product-info { padding-right: 0; text-align: center; }
  .tbexp-product-controls { flex: none; width: 100%; }
  .tbexp-variant-item-compact { gap: 10px; margin-bottom: 7px; min-height: 26px; justify-content: flex-end; }
  .tbexp-variant-label-compact { font-size: 11px; width: 28px; text-align: right; }
  .tbexp-equipment-dropdown-compact { width: 55px; padding: 5px 8px; font-size: 12px; min-height: 26px; }

  .tbexp-availability-actions-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tbexp-view-product-link { align-self: flex-start; font-size: 12px; }

  .tbexp-progress-bar { padding: 15px 20px; margin-bottom: 30px; }
  .tbexp-step-indicator { min-width: 60px; }
  .tbexp-step-circle { width: 40px; height: 40px; font-size: 16px; }
  .tbexp-step-label { font-size: 10px; }
  .tbexp-progress-line { margin: 0 10px; }

  .tbexp-toast-container { top: 20px; right: 10px; left: 10px; max-width: none; }
  .tbexp-toast { padding: 12px 15px; font-size: 13px; }

  .tbexp-modal-content { width: 95%; margin: 10px; max-height: 90vh; }
  .tbexp-modal-header, .tbexp-modal-body { padding: 20px; }
  .tbexp-gallery-thumbs { gap: 8px; }
  .tbexp-thumb { width: 50px; height: 50px; }
}

/* ============ TABLET (bez wyłączania sticky) ============ */
@media (min-width: 769px) and (max-width: 1024px) {
  .tbexp-main-layout {
    display: flex;
    flex-direction: column;
  }

  .tbexp-summary-column { order: -1; } /* Summary first on tablet */

  /* Uwaga: NIE ustawiaj .tbexp-sticky-summary na position: static; sticky jest na #tbexp-sticky-summary */
}

/* ============ DESKTOP GRID ============ */
@media (min-width: 1025px) {
  .tbexp-main-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
  }
}

/* ============ Fallback class z JS (tryb fixed, gdy brakuje miejsca) ============ */
#tbexp-sticky-summary.tbexp-sticky-fallback {
  position: fixed; /* top/left/width nadawane dynamicznie w JS */
  z-index: 5;
}

/* Sekcje kroków – zatrzymaj scroll poniżej headera/adminbara */
#tbexp-step-persons,
#tbexp-step-required,
#tbexp-step-additional {
  scroll-margin-top: calc(var(--adminbar-offset, 0px) + var(--sticky-header-offset, 80px) + 24px);
}

/* Utrzymaj umiarkowaną warstwę panelu */
#tbexp-sticky-summary { z-index: 5; }

/* Wyłącz ewentualne wcześniejsze pozycjonowanie na klasie (gasi konflikty) */
.tbexp-sticky-summary { position: initial; top: auto; }


/* Kolumna – miejsce dla sticky i kontekst pozycjonowania */
.tbexp-summary-column {
  position: relative;
  overflow: visible;
  padding-bottom: 40px;
  min-height: calc(100vh - var(--adminbar-offset, 0px) - var(--sticky-header-offset, 80px) - 50px);
}

/* Sticky natywny z offsetami z JS */
#tbexp-sticky-summary {
  position: sticky;
  top: calc(var(--adminbar-offset, 0px) + var(--sticky-header-offset, 80px) + 16px);
  z-index: 5;
  background: #fff;
  min-height: 120px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
border-top: 2px solid #DA0001;
}

/* Wewnętrzny scroll treści sticky */
#tbexp-sticky-summary .tbexp-sticky-inner {
  max-height: calc(100vh - var(--adminbar-offset, 0px) - var(--sticky-header-offset, 80px) - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Wyłącz pozycjonowanie na klasie (bez konfliktów) */
.tbexp-sticky-summary { position: initial; top: auto; }

/* Fallback: fixed (pozycje ustawia JS) */
#tbexp-sticky-summary.tbexp-sticky-fallback { position: fixed; z-index: 5; }

/* NOWE: przypięcie do dołu kolumny, aby nie nachodzić na treści poniżej konfiguratora */
#tbexp-sticky-summary.tbexp-sticky-bottom {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5;
}

/* Sekcje kroków – bezpieczne zatrzymanie poniżej nagłówka/adminbara */
#tbexp-step-persons,
#tbexp-step-required,
#tbexp-step-additional {
  scroll-margin-top: calc(var(--adminbar-offset, 0px) + var(--sticky-header-offset, 80px) + 24px);
}
