.product-breadcrumbs {
    margin: 0 0 15px;
    font-size: 14px;
}

.product-breadcrumbs a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumbs a:hover {
    color: #DA6E4B;
}

/* Informacje o produkcie */
.product-details {
    width: 100%;
    padding: 0 20px;
}

.product-title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 30px;
    font-family: var(--title-font-family);
    text-transform: uppercase;
    font-weight: 500;
    color: #1D1D1B;
}

@media (max-width: 992px) {
    .product-breadcrumbs.desktop {
        display: none;
    }

    .product-breadcrumbs.mobile {
        padding-bottom: 10px;
    }

    .product-details {
        padding: 0px 0px;
    }
}

@media (min-width: 992px) {
    .product-breadcrumbs.mobile {
        display: none;
    }
}

.product-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    padding-top: 50px;
}

/* Baner produktu */
.product-header-banner {
    width: 100%;
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.product-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.product-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.product-header-banner .container {
    position: relative;
    height: 100%;
    z-index: 2;
}

.product-header-banner h1 {
    font-family: var(--title-font-family);
    font-size: 70px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFFFF;
}

.woocommerce img,
.woocommerce-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsywność */
@media (max-width: 768px) {

    .product-header-banner h1 {
        font-size: 60px;
    }
}

/* Pierwszy wiersz szczegółów produktu (breadcrumbs, tytuł, kolory, dostępność) */
.product-details-first-row-desktop {
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* Galeria produktu */
.product-gallery {
    width: 100%;
    height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(99, 99, 97, 0.4);
    margin-bottom: 20px;
    overflow: hidden;
    padding: 40px;
}

.product-gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
}

/* Miniatury zdjęć w siatce pod galerią */
.product-thumbnails-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
    width: 100%;
}

.thumbnail-item {
    width: 100%;
    height: 300px;
    border: 1px solid rgba(99, 99, 97, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 10px;
    box-sizing: border-box;
}

.thumbnail-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.thumbnail-item:hover {
    border: 1px solid #DA6E4B;
}

/* Kolory produktu */
.product-colors {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(99, 99, 97, 0.4);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;

}

.product-colors h4,
.product-availability h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.color-dots {
    display: flex;
    gap: 10px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.3s;
}

/* Dostępność */
.product-availability {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(99, 99, 97, 0.4);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.availability-status.in-stock {
    color: #4CAF50;
    font-size: 16px;
}

/* Opis produktu */
.product-description {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-description ul,
.product-description ol {
    margin: 15px 0;
    padding-left: 25px;
}

.product-description ul {
    list-style-type: disc;
}

.product-description ol {
    list-style-type: decimal;
}

.product-description li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-description strong,
.product-description b {
    font-weight: 600;
    color: #333;
}

.product-description em,
.product-description i {
    font-style: italic;
}

.product-description a {
    color: #DA6E4B;
    text-decoration: underline;
}

.product-description a:hover {
    color: #1D1D1B;
}

/* Liczba - nowe styles zgodne z obrazkiem */
.quantity {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid rgba(99, 99, 97, 0.4);
    border-radius: 2px;
    max-width: 110px;
}

.quantity input {
    width: 50px;
    padding: 8px 0;
    border: none;
    font-size: 16px;
    text-align: center;
    background-color: transparent;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    margin: 0;
    height: 40px;
}

.quantity input:focus {
    outline: none;
}

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

/* Przyciski + i - */
.quantity::before,
.quantity::after {
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 40px;
    font-size: 16px;
    color: #777;
    cursor: pointer;
    background-color: transparent;
    user-select: none;
}

.quantity::before {
    content: "-";
}

.quantity::after {
    content: "+";
}

/* Zmiana koloru przy najechaniu */
.quantity::before:hover,
.quantity::after:hover {
    color: #DA6E4B;
}


.quantity-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
}

.quantity-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.woocommerce .quantity .qty {
    font-family: var(--body-font-family);
}


.price-wrapper {
    margin-bottom: 30px;
}

.product-price {
    font-size: 28px;
    color: #DA6E4B;
    font-weight: 600;
}

.price-period {
    font-size: 16px;
    color: #666;
    font-weight: normal;
    font-weight: 400;
}

/* Przycisk */
.single_add_to_cart_button.button.alt {
    width: 100%;
    padding: 20px 40px;
    background-color: #1D1D1B !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0;
    text-transform: uppercase;
    font-family: var(--body-font-family);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 1px;
}

.single_add_to_cart_button.button.alt:hover {
    background-color: #DA6E4B !important;
}

/* Meta informacje */
.product-meta {
    margin-top: 30px;
}

.delivery-info,
.contact-info-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #1D1D1B;
}

.delivery-icon,
.phone-icon {
    flex-shrink: 0;
    margin-right: 10px;
    width: 24px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.delivery-icon {
    background-image: url("data:image/svg+xml,%3Csvg id='layer_1' enable-background='new 0 0 32 32' height='512' viewBox='0 0 32 32' width='512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m18.5136719 28h-9.9101563c-1.6542969 0-3-1.3457031-3-3v-18c0-1.6542969 1.3457031-3 3-3h14c1.6542969 0 3 1.3457031 3 3v14.2998047c0 .267334.1081543.5072021.2787476.6865234.1821289.1914062.4358521.3134766.7212524.3134766.5527344 0 1-.4472656 1-1v-14.2998047c0-2.7568359-2.2431641-5-5-5h-14c-2.7568359 0-5 2.2431641-5 5v18c0 2.7568359 2.2431641 5 5 5h9.9101562c.5527344 0 1-.4472656 1-1 0-.2674561-.1081543-.5073853-.2788696-.6867065-.1820678-.1912842-.435852-.3132935-.7211303-.3132935z'/%3E%3Cpath d='m21.6035156 15h-12c-.5527344 0-1 .4477539-1 1s.4472656 1 1 1h12c.5527344 0 1-.4477539 1-1s-.4472656-1-1-1z'/%3E%3Cpath d='m21.6035156 10h-12c-.5527344 0-1 .4477539-1 1s.4472656 1 1 1h12c.5527344 0 1-.4477539 1-1s-.4472656-1-1-1z'/%3E%3Cpath d='m21.6035156 20h-12c-.5527344 0-1 .4472656-1 1s.4472656 1 1 1h12c.5527344 0 1-.4472656 1-1s-.4472656-1-1-1z'/%3E%3Cpath d='m21.1025391 26.0478516c-.208374.208374-.2971191.4845581-.2832031.7572632.012207.2385254.1009521.4745483.2832031.6567993l2.0263672 2.0253906c.1953125.1953125.4511719.2929688.7070312.2929688s.5117188-.0976562.7070312-.2929688l3.5605469-3.5605469c.390625-.390625.390625-1.0234375 0-1.4140625s-1.0234375-.390625-1.4140625 0l-2.8535156 2.8535156-1.3193359-1.3183594c-.1708984-.1708984-.3899536-.2532959-.6130371-.2746582-.2867432-.0274658-.5812989.0549317-.8010254.2746583z'/%3E%3C/svg%3E");
}

.phone-icon {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.97 18.33C21.97 18.69 21.89 19.06 21.72 19.42C21.55 19.78 21.33 20.12 21.04 20.44C20.55 20.98 20.01 21.37 19.4 21.62C18.8 21.87 18.15 22 17.45 22C16.43 22 15.34 21.76 14.19 21.27C13.04 20.78 11.89 20.12 10.75 19.29C9.6 18.45 8.51 17.52 7.47 16.49C6.44 15.45 5.51 14.36 4.68 13.22C3.86 12.08 3.2 10.94 2.72 9.81C2.24 8.67 2 7.58 2 6.54C2 5.86 2.12 5.21 2.36 4.61C2.6 4 2.98 3.44 3.51 2.94C4.15 2.31 4.85 2 5.59 2C5.87 2 6.15 2.06 6.4 2.18C6.66 2.3 6.89 2.48 7.07 2.74L9.39 6.01C9.57 6.26 9.7 6.49 9.79 6.71C9.88 6.92 9.93 7.13 9.93 7.32C9.93 7.56 9.86 7.8 9.73 8.03C9.6 8.26 9.42 8.5 9.19 8.74L8.33 9.63C8.22 9.74 8.17 9.87 8.17 10.02C8.17 10.09 8.18 10.16 8.2 10.24C8.23 10.32 8.25 10.38 8.27 10.44C8.44 10.78 8.76 11.22 9.22 11.76C9.69 12.3 10.2 12.84 10.75 13.39C11.31 13.94 11.84 14.46 12.39 14.93C12.93 15.39 13.37 15.71 13.71 15.88C13.76 15.9 13.82 15.92 13.9 15.95C13.98 15.97 14.06 15.98 14.14 15.98C14.3 15.98 14.43 15.93 14.54 15.82L15.4 14.97C15.64 14.74 15.88 14.56 16.11 14.43C16.34 14.3 16.58 14.23 16.83 14.23C17.02 14.23 17.22 14.27 17.44 14.36C17.66 14.45 17.89 14.58 18.14 14.76L21.47 17.12C21.73 17.3 21.91 17.52 22.02 17.78C22.13 18.04 22.18 18.28 22.18 18.54C21.97 18.33 21.97 18.33 21.97 18.33Z' stroke='%23292D32' stroke-width='1.5' stroke-miterlimit='10'/%3E%3C/svg%3E");
}

.delivery-info a,
.contact-info-section a {
    color: #DA6E4B;
    text-decoration: none;
}

.delivery-info small {
    margin-left: 5px;
    color: #DA6E4B;
    font-size: 14px;
}

/* Akordeony */
.product-accordion {
    margin-top: 40px;
}


.accordion-header h3 {
    font-size: 16px;
    font-weight: 400;
    color: #1D1D1B;
    font-family: var(--body-font-family);
    margin: 0;
}


.accordion-item.active .accordion-content {
    max-height: 100%;
    opacity: 1;
    padding: 0 0 20px;
}

.accordion-content p {
    color: #1D1D1B;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 0;
}

.accordion-content h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.related-products h2 {
    font-size: 70px;
    font-weight: 400;
    margin-bottom: 40px;
    font-family: var(--title-font-family);
    text-transform: uppercase;
    line-height: 1;
}

.accordion-content ul {
    list-style: square !important;
    padding-left: 20px !important;
    margin-left: 15px !important;
}

.accordion-content ul li {
    display: list-item !important;
    margin-bottom: 5px !important;
}

.accordion-content ol {
    list-style: decimal !important;
    padding-left: 20px !important;
    margin-left: 15px !important;
}

.accordion-content ol li {
    display: list-item !important;
    margin-bottom: 5px !important;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.related-product-card {
    border: 1px solid #63636166;
    overflow: hidden;
}

.related-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.related-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
}

.related-product-meta {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px 0;
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
}

.related-product-title {
    padding: 0 20px;
    margin: 10px 0;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    color: #1D1D1B;
    font-family: var(--title-font-family);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;

}

.related-product-excerpt {
    padding: 0 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 60px;
    overflow: hidden;
}

.related-product-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #DA6E4B;
}

.related-product-button {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #1D1D1B;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.related-product-button:hover {
    background-color: #DA6E4B;
    color: #EFEEEC;
}

/* Responsywność dla podobnych produktów */
@media (max-width: 1024px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Ukryj domyślną sekcję podobnych produktów WooCommerce */
.related.products {
    display: none;
}

/* Responsywność */
@media (min-width: 992px) {
    .product-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }

    .product-gallery-column {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-self: start;
    }

    .product-details {
        grid-column: 2;
    }
}

@media (max-width: 576px) {
    .product-gallery {
        height: auto;
        padding: 20px;
    }

    .rental-dates {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related.products ul.products {
        grid-template-columns: 1fr;
    }

    /* Poprawne pozycjonowanie kalendarza datepicker */
    #ui-datepicker-div {
        width: calc(100% - 40px) !important;
        position: fixed !important;
        /* Użyj fixed zamiast absolute */
        left: 20px !important;
        right: 20px !important;
        margin: 0 auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        max-height: 90vh;
        overflow-y: auto;
        z-index: 9999 !important;
        /* Upewnij się, że jest nad wszystkimi elementami */
    }

    .ui-datepicker {
        width: 100% !important;
        box-sizing: border-box;
        padding: 15px !important;
    }

    .ui-datepicker td span,
    .ui-datepicker td a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .ui-datepicker-header {
        margin-bottom: 10px;
    }

    .ui-datepicker-title {
        font-size: 14px;
    }

    /* Poprawka dla przycisku strzałek */
    .ui-datepicker-prev,
    .ui-datepicker-next {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Dodatkowe style dla kalendarza na małych ekranach */
@media (max-width: 400px) {
    .ui-datepicker td {
        padding: 1px;
    }

    .ui-datepicker td span,
    .ui-datepicker td a {
        width: 24px;
        height: 24px;
    }

    .ui-datepicker-calendar {
        border-spacing: 1px !important;
    }
}

/* Zawartość nagłówka musi być nad overlayem */
.product-header-banner .container {
    position: relative;
    z-index: 3;
}

/* Wskaźniki galerii (poziome linie) */
.product-gallery-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.indicator {
    width: 45px;
    height: 3px;
    background-color: #D9D9D9;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #63636166;
}

/* Ukryj miniatury na urządzeniach mobilnych */
@media (max-width: 767px) {
    .product-thumbnails-row {
        display: none;
    }

    .product-gallery-indicators {
        margin-bottom: 30px;
    }
}

/* Style dla kalendarza */
.ui-datepicker {
    background: #fff;
    padding: 20px !important;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.048);
    width: 400px !important;
    font-family: var(--body-font-family) !important;
    border-radius: 0;
}

.ui-datepicker-header {
    background: none;
    border: none !important;
    padding: 0;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-datepicker-title {
    font-size: 16px;
    font-weight: 500;
    color: #1D1D1B;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.ui-corner-all {
    border-radius: 0px !important;
}

/* Usuwamy domyślne style i ikony UI */
.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%);
    cursor: pointer;
    width: 40px !important;
    height: 40px !important;
    background: #1D1D1B !important;
    color: #EFEEEC !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.ui-datepicker-prev {
    left: 0 !important;
    border-radius: 0px !important;
    background: #EFEEEC !important;
}

.ui-datepicker-next {
    right: 0 !important;
    border-radius: 0px !important;
}

.ui-widget-header {
    background: none !important;
}

/* Ukrywamy domyślne ikony */
.ui-datepicker .ui-icon,
.ui-widget-header .ui-icon,
.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: none !important;
}

/* Dodajemy własne strzałki */
.ui-datepicker-prev::after,
.ui-datepicker-next::after {
    content: '';
    width: 8px;
    height: 8px;
    border-width: 0 1px 1px 0;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
}

.ui-datepicker-prev::after {
    border: 1px solid #1D1D1B;
    /* Kolor strzałki dla prev */
    border-width: 0 1px 1px 0;
    transform: translate(-25%, -50%) rotate(135deg);
}

.ui-datepicker-next::after {
    border: 1px solid #EFEEEC;
    /* Kolor strzałki dla next */
    border-width: 0 1px 1px 0;
    transform: translate(-75%, -50%) rotate(-45deg);
}

/* Style dla dni tygodnia */
.ui-datepicker th {
    padding: 10px 5px;
    text-align: center;
    font-weight: normal;
    font-size: 12px;
    color: #1D1D1B;
    text-transform: uppercase;
}

/* Style dla dni */
.ui-datepicker td {
    padding: 2px;
    text-align: center;
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin: 0 auto;
    text-align: center !important;
    text-decoration: none;
    font-size: 14px;
    color: #1D1D1B;
    border: none !important;
    background: none !important;
}

/* Style dla dzisiejszego dnia */
.ui-datepicker td.ui-datepicker-today {
    background: #f5f5f5 !important;
    border: 1px solid #DA6E4B !important
}

/* Style dla wybranego dnia */
.ui-datepicker td.ui-datepicker-current-day {
    background: #DA6E4B !important;
    border: 1px solid #DA6E4B !important;
    color: #fff !important;
}

/* Style dla wyłączonych dni */
.ui-datepicker td.ui-state-disabled {
    opacity: 0.3;
    background-color: #EFEEEC;
}

/* Style dla inputów daty */
.date-picker input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(99, 99, 97, 0.4);
    font-size: 16px;
    background-color: #fff;
    font-family: var(--body-font-family);
    cursor: pointer;
    color: #1D1D1B;
}

.date-picker input::placeholder {
    color: #1D1D1B;
}

/* Przycisk wyboru daty */
.rental-dates+button {
    width: 100%;
    padding: 15px;
    background: #1D1D1B;
    color: #fff;
    border: none;
    text-transform: uppercase;
    font-family: var(--body-font-family);
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
}

/* Daty */
.rental-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.date-start,
.date-end {
    width: 100%;
}

.rental-dates label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #1D1D1B;
}

.date-picker {
    position: relative;
    width: 100%;
}

.date-picker input:focus {
    outline: none;
    border-color: #DA6E4B;
}

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2V5M16 2V5M3.5 9.09H20.5M21 8.5V17C21 20 19.5 22 16 22H8C4.5 22 3 20 3 17V8.5C3 5.5 4.5 3.5 8 3.5H16C19.5 3.5 21 5.5 21 8.5Z' stroke='%23292D32' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.ui-datepicker-calendar {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 2px !important;
}

.ui-datepicker-calendar td {
    margin: 1px !important;
}

/* Style dla dropdownów wariantów */
.variations select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(99, 99, 97, 0.4);
    background-color: #fff;
    font-family: var(--body-font-family);
    font-size: 16px;
    color: #1D1D1B;
    height: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231D1D1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
}

.variations select:focus {
    outline: none;
    border-color: #DA6E4B;
}

/* Style dla tabeli wariantów */
.variations {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
}

.variations th {
    text-align: left;
    padding: 5px 0;
    font-weight: 500;
    color: #1D1D1B;
    font-size: 16px;
    width: 30%;
}

.variations td {
    padding: 5px 0;
    width: 70%;
}

/* Reset variant link */
.reset_variations {
    display: inline-block;
    margin-top: 10px;
    color: #DA6E4B;
    font-size: 14px;
    text-decoration: none;
}

.reset_variations:hover {
    text-decoration: underline;
}

/* Poprawki dla wariacji ilości */
.woocommerce-variation-add-to-cart {
    margin-top: 20px;
}

/* Styl dla aktywnego przycisku po wyborze wariantu */
.single_add_to_cart_button.button.alt:not([disabled]) {
    cursor: pointer;
    opacity: 1;
}

.single_add_to_cart_button.button.alt[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Style dla pola liczby */
.quantity-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-wrapper label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-right: 15px;
}

/* Styl dla ceny po wybraniu wariantu */
.woocommerce-variation-price {
    margin-bottom: 15px;
    font-size: 28px;
    color: #DA6E4B;
    font-weight: 600;
}

/* Styl dla komunikatu o niedostępności wariantu */
.woocommerce-variation-availability {
    margin-bottom: 15px;
    font-size: 14px;
}

.woocommerce-variation-availability .stock.out-of-stock {
    color: #e2401c;
}

.woocommerce-variation-availability .stock.in-stock {
    color: #4CAF50;
}

/* Style dla komunikatu o rabacie */
#rental-discount-message {
    margin-top: 8px;
}

#rental-discount-message .discount-info {
    color: #4CAF50;
    font-weight: bold;
    padding: 5px 10px;
    background-color: #f8f8f8;
    border-left: 3px solid #4CAF50;
    margin: 0;
    display: inline-block;
}

/* =====================================================
   STYLE DLA VOUCHERÓW
   ===================================================== */

.voucher-product .product-details-first-row-desktop {
    min-height: auto;
}

/* Ukryj standardową cenę wariantu WooCommerce dla voucherów */
.voucher-product .woocommerce-variation-price,
.voucher-product .woocommerce-variation-availability,
.voucher-product .single_variation {
    display: none !important;
}

/* Opis wariantu vouchera */
.voucher-variation-description {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #DA6E4B;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.voucher-variation-description p {
    margin: 0;
}

.voucher-variation-description p:last-child {
    margin-bottom: 0;
}

/* Uproszczona cena dla vouchera - bez "/ dzień" */
.voucher-price .product-price {
    font-size: 32px;
    color: #DA6E4B;
    font-weight: 600;
    margin-bottom: 20px;
}

.voucher-price .product-price .price-period {
    display: none;
}

/* Formularz vouchera - prostsza wersja */
.voucher-form {
    margin-top: 20px;
}

.voucher-form .variations {
    margin-bottom: 30px;
}


@media (max-width: 768px) {

    .voucher-form table.variations,
    .voucher-form table.variations tbody,
    .voucher-form table.variations tr,
    .voucher-form table.variations th,
    .voucher-form table.variations td {
        display: block;
        width: 100%;
    }

    .voucher-form table.variations tr {
        margin-bottom: 15px;
    }

    .voucher-form table.variations th {
        padding-bottom: 8px;
    }

    .voucher-form table.variations td {
        padding: 0;
    }
}


/* Przycisk kupna vouchera */
.voucher-button {
    width: 100%;
    padding: 20px 40px !important;
    background-color: #DA6E4B !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    font-family: var(--body-font-family);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 1px;
}

.voucher-button:hover {
    background-color: #1D1D1B !important;
}

/* Dostępność vouchera */
.voucher-product .product-availability {
    border-bottom: none;
    padding-bottom: 0;
}

.voucher-product .availability-status.in-stock {
    color: #4CAF50;
    font-weight: 500;
}

/* Sekcja akordeonów dla voucherów */
.voucher-product .accordion-content ol,
.voucher-product .accordion-content ul {
    padding-left: 25px !important;
    margin-left: 0 !important;
    color: #666;
}

.voucher-product .accordion-content li {
    margin-bottom: 10px !important;
    line-height: 1.6;
}

/* Baner dla vouchera */
.voucher-banner .product-header-background img {
    filter: hue-rotate(15deg);
}

/* Przycisk vouchera - stan zablokowany */
.voucher-button:disabled,
.voucher-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #999 !important;
}

.voucher-button:disabled:hover,
.voucher-button.disabled:hover {
    background-color: #999 !important;
}

/* Responsywność dla voucherów */
@media (max-width: 768px) {
    .voucher-price .product-price {
        font-size: 28px;
    }

    .voucher-button {
        padding: 15px 30px !important;
        font-size: 14px;
    }

}

/* Sekcja "Zobacz również" na mobile - pełna szerokość */
@media (max-width: 768px) {
    .voucher-product.product-wrapper.container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .voucher-product .product-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .voucher-product .related-products.container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .voucher-product .related-products h2 {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 40px;
    }

    .voucher-product .related-products-grid {
        padding-left: 20px;
        padding-right: 20px;
    }
}