.product-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    place-items: center;
    gap: 16px;
}

.successMessageSubmit {
    color: green;
    margin-top: 10px;
    grid-column: span 2;
}
.alert-success {
    color: green;
    font-weight: bold;
    display: none;
    text-align: center;
}

.error-message {
    display: none;
    color: red;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    grid-column: 1/-1;
}
.gdpr-container input[type="radio"] {
    padding: 0;
    margin: 0;
    border: none;
    width: auto;
    height: auto;
    -moz-appearance: radio;
    appearance: radio;
    -webkit-appearance: radio;
    display: inline-flex;
    grid-column: 1/-1;
}
.gdpr-container {
    grid-column: 1/-1;
}

.sidebar-fixed .custom-sticky-sidebar {
    position: sticky;
    transition:
        top 0.4s ease-in-out,
        bottom 0.3s ease-in-out;
}

.custom-sticky-sidebar {
    position: relative;
    width: inherit;
}

.custom-sticky-sidebar.fixed {
    position: fixed;
    top: 64px;
}
.ask-for-details {
    width: 100%;
    background: none;
    cursor: pointer;
}

.product-price-detail {
    align-items: start;
}

.product-price-detail .previous-price-title {
    font-size: 24px;
}
.product-details .details_button p {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 24px;
    letter-spacing: 0.2px;
    text-align: center;
    margin: 0 0 0 -10px;
    color: white;
    padding: 1rem 0;
}
.previous-price-location-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 24px;
    font-weight: 600;
}
.previous-price-location-wrapper.pdp {
    align-items: start;
}
.previous-price-location-wrapper.pdp .location {
    justify-self: end;
    color: #333;
    font-size: 14px;
}
.previous-price-location-wrapper img {
    width: 12px;
    margin-bottom: 4px;
}

.product-price-detail .net-price-title {
    font-size: 36px;
    font-weight: 700;
}

.product-price-detail .gross-price-title {
    font-size: 36px;
    font-weight: 700;
}
.product-media img {
    aspect-ratio: 1.35;
}
.product-media {
    position: relative;
    height: 100%;
}
.product-media img:last-child {
    -o-object-fit: initial;
    object-fit: initial;
    height: 100%;
}
.grecaptcha-badge {
    display: none !important;
}

.contact-info-buttons-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}
.contact-info-buttons-wrapper .display-on-mobile {
    display: none;
}
.contact-info-buttons-wrapper a {
    width: 100%;
    overflow: hidden;
    -webkit-text-decoration: none;
    text-decoration: none;
    color: inherit;
}

.contact-info-buttons-wrapper .button {
    display: flex;
    background-color: #fff;
    border-radius: 16px;
    font-size: 18px;
    color: black;
    border: 2px solid #000;
    justify-content: center;
    padding: 10px;
    margin: 3px;
    cursor: pointer;
    gap: 4px;
}

.contact-info-buttons-wrapper .button .text {
    align-self: center;
    font-weight: 600;
    max-width: 95%;
    text-overflow: ellipsis;
    overflow: hidden;
    text-wrap: nowrap;
    white-space: nowrap;
}

.search-input {
    position: relative;

    padding: 0.6em 1.3em 0.65em 1.2em;
    font-family: "Lexend", sans-serif;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #d7d7d7;
    border-radius: 0.3rem;
    width: 154px;
}
.price-input {
    display: inline !important;
}

.price-input::after {
    right: 55px;
    left: auto;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.price-input::after {
    content: attr(data-price);
    position: absolute;
    right: 8px;
    top: 50%;
    font-size: 12px;
}
input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.price-placeholder {
    height: 82px;
}

.promotion-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: absolute;

    width: 100%;
    color: #31ff31;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    padding: 5px;
}
.promotion-wrapper.pdp {
    position: relative;
    width: 100%;
    top: 0px;
    left: 0px;
}
.promotion-wrapper .promotion-time-wrapper {
    display: flex;
    width: auto;
    gap: 0px;
}
.promotion-wrapper .promotion-time-wrapper .promotion-countdown {
    white-space: nowrap;
    display: flex;
    gap: 5px;
}

.promotion-wrapper .promotion-time-wrapper .promotion-countdown #seconds {
    width: 35px;
}
.promotion-wrapper .promotion-text {
    color: #f00;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow: hidden;
    z-index: 1000;
}

.hide {
    display: none !important;
}

.form-response-modal-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    max-width: 45%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    bottom: unset;
    left: unset;
    right: unset;
}

.success-icon {
    width: 80px;
    height: 80px;
    align-self: center;
    border-radius: 50px;
}

.modal-heading {
    color: black;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
}

.modal-subtext {
    margin-top: 10px;
    line-height: 30px;
    font-size: 20px;
    color: black;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0 auto;
    align-self: center;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
}

.button:hover {
    color: black;
}

.success-button {
    background-color: green;
}

.close-modal-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}
.error-icon {
    width: 60px;
    height: 60px;
    align-self: center;
    padding: 10px;
    border: 1px solid red;
    border-radius: 50px;
}

.close-modal-icon:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.watermark-banner-container,
.watermark-banner-zero-prepay {
    position: absolute;
    display: flex;
    align-items: center;
    z-index: 9;
    padding: 5px;
}

.watermark-banner-container.car-card__banner {
    position: relative;
    width: 100%;
    bottom: 0px;
    margin-bottom: 16px;
}

.watermark-banner-container {
    bottom: 35px;
    left: 0;
    right: 0;
    gap: 10px;
    height: 2.5rem;
    width: 50%;
    justify-content: flex-start;
}

.watermark-banner-container .watermark-text {
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-size: 18px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
    width: 100%;
}

.watermark-banner-container.pdp {
    bottom: 12%;
    height: 11%;
}

.watermark-banner-container.pdp .watermark-text.pdp {
    font-size: max(1rem, min(1.5vw, 30px));
}

.watermark-banner-zero-prepay {
    bottom: 35px;
    right: 0;
    z-index: 10;
    height: 4.6rem;
    width: 56%;
    justify-content: center;
    background: linear-gradient(to left, #8b0000, red);
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    -webkit-clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    overflow: hidden;
}

.watermark-banner-zero-prepay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 100%;
    background: inherit;
    transform: skewX(-10deg);
    transform-origin: top left;
    z-index: -1;
}

.watermark-banner-zero-prepay .watermark-zero-prepay-price {
    color: #ffd700;
    font-family: "Lexend", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-shadow: 4px 4px 8px #8b0000;
    width: 100%;
}

.watermark-banner-zero-prepay.pdp {
    bottom: 12%;
    height: 18%;
    width: 55.5%;
}

.watermark-banner-zero-prepay.pdp .watermark-zero-prepay-price.pdp {
    font-size: max(1rem, min(3.2vw, 52px));
}

.watermark-banner-monthly-rate-container {
    bottom: 0px;
    left: 0;
    right: 0;
    height: 35px;
    justify-content: center;
    background: #d51e25;
}

.watermark-banner-monthly-rate-container .monthly-rate-text {
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-size: 22px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    align-self: center;
}

.watermark-banner-monthly-rate-container .monthly-rate-text .rate {
    font-weight: 600;
    font-size: 22px;
    color: #000;
}

.watermark-banner-monthly-rate-container.pdp {
    bottom: 0;
    height: 12%;
}

.watermark-banner-monthly-rate-container.pdp .monthly-rate-text.pdp {
    font-size: max(1rem, min(3vw, 52px));
}

.watermark-banner-monthly-rate-container.pdp .monthly-rate-text.pdp .rate.pdp {
    font-size: max(1rem, min(3vw, 52px));
}

.product-details-wrapper {
    position: relative;
    padding: 3rem 3rem 1rem;
}

.card-carousel-container .card-carousel-dots {
    bottom: 10px;
    top: auto !important;
}

.card-carousel-container .card-carousel-dots .dot.active {
    background-color: #d51e25 !important;
}

.card-carousel-container .overlay-slide .overlay .redirect {
    color: #fafafa !important;
}

.card-carousel-container .card-carousel-slide {
    min-height: 300px;
}

.card-carousel-container .card-carousel-slide img {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.toggle-label,
button[type="submit"],
.modal-content,
.payment-modal .modal-content label,
.installments-modal .modal-content label,
.payment-modal .modal-content input,
.installments-modal .modal-content input {
    font-family: "Lexend", sans-serif !important;
}

@media (max-width: 992px) {
    .contact-info-buttons-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .contact-info-buttons-wrapper .display-on-mobile {
        display: flex;

        width: 100%;
    }
    .contact-info-buttons-wrapper .display-on-mobile .button {
        width: 100%;
    }
    .sidebar-fixed .custom-sticky-sidebar {
        position: fixed !important;
        top: 0 !important;
        transition:
            top 0.4s ease-in-out,
            bottom 0.3s ease-in-out;
    }
    .search-input {
        margin: 0 1rem 1rem 0 !important;
        left: 0;
    }

    .search-input::placeholder {
        color: #666 !important;
    }
    .watermark-banner-zero-prepay.pdp .watermark-zero-prepay-price.pdp {
        font-size: 42px;
    }

    .product-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) {
    .gdpr-container {
        margin-bottom: 20px;
    }

    .contact-info-buttons-wrapper {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .contact-info-buttons-wrapper .button img {
        height: 20px;
        -o-object-fit: contain;
        object-fit: contain;
    }

    .contact-info-buttons-wrapper .button .text {
        font-size: 14px;
    }

    .form-name,
    .google-announce-container,
    button {
        grid-column: 1/ -1;
    }
    .buyback-container .form-name,
    .google-announce-container,
    .buyback-container button {
        grid-column: 1/-1;
    }

    .modal-heading {
        font-size: 15px;
    }
    .modal-subtext {
        font-size: 15px;
    }
    .form-response-modal-container {
        max-width: 70%;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }
    .button {
        font-size: 15px;
    }

    .product-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 600px) {
    .watermark-banner-monthly-rate-container.pdp .monthly-rate-text.pdp {
        font-size: 22px;
    }

    .watermark-banner-monthly-rate-container.pdp .monthly-rate-text.pdp .rate.pdp {
        font-size: 22px;
    }

    .watermark-banner-container.pdp .watermark-text.pdp {
        font-size: 12px;
    }
}
@media (max-width: 580px) {
    .watermark-banner-zero-prepay.pdp .watermark-zero-prepay-price.pdp {
        font-size: 20px;
    }
}
@media (max-width: 580px) and (min-width: 450px) {
    .watermark-banner-zero-prepay.pdp .watermark-zero-prepay-price.pdp {
        font-size: 32px;
    }
}
@media (min-width: 690px) and (max-width: 1024px) {
    .watermark-banner-container.pdp .watermark-text.pdp {
        font-size: 20px;
    }
}
@media (min-width: 1024px) {
    .promotion-wrapper.pdp {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 5px;
    }
}
@media (max-width: 350px) {
    .product-details-wrapper {
        padding: 5rem 3rem 1rem;
    }
    .promotion-wrapper {
        flex-direction: column;
        text-align: left;
    }
}
