/* Thank you page cross-sell catalogue. */

.thank-page {
    padding: 32px 20px 64px;
    background: #ffffff;
}

.thank-page__inner {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
}

.thank-page__header {
    margin-bottom: 28px;
    text-align: center;
}

.thank-page__title {
    margin: 0;
    color: #20262f;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
}

.thank-page__section-title {
    margin: 0 0 24px;
    color: #252b34;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.thank-page__content {
    max-width: 780px;
    margin: 0 auto 30px;
    color: #343a44;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.thank-page__content > :first-child {
    margin-top: 0;
}

.thank-page__content > :last-child {
    margin-bottom: 0;
}

.thank-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
}

.thank-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgb(15 23 42 / 7%);
}

.thank-product-card__header {
    display: grid;
    min-height: 68px;
    place-items: center;
    padding: 12px;
    text-align: center;
}

.thank-product-card__media {
    width: 100%;
    background: #f4f5f7;
}

.thank-product-card__main-image,
.thank-product-card__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.thank-product-card__main-image {
    object-fit: cover;
}

.thank-product-card__placeholder {
    background: #f4f5f7;
}

.thank-product-card__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    background: #ffffff;
}

.thank-product-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.thank-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 12px 16px;
    text-align: center;
}

.thank-product-card__title {
    margin: 0;
    color: #252b34;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.thank-product-card__prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.thank-product-card__old-price,
.thank-product-card__new-price {
    display: flex;
    min-width: 0;
    min-height: 68px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    border-radius: 6px;
}

.thank-product-card__old-price {
    border: 1px solid #ffd4df;
    background: #fff2f5;
    color: #d93662;
}

.thank-product-card__new-price {
    border: 1px solid #bdebd2;
    background: #effcf5;
    color: #119653;
}

.thank-product-card__old-price:only-child,
.thank-product-card__new-price:only-child {
    grid-column: 1 / -1;
}

.thank-product-card__old-price > span,
.thank-product-card__new-price > span {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.thank-product-card__old-price strong,
.thank-product-card__new-price strong {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.thank-product-card__old-price strong {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.thank-product-card__details-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 16px;
    border: 0;
    border-radius: 5px;
    background: #d7e7ee;
    color: #26313a;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.thank-product-card__details-button::after {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentcolor;
    border-bottom: 2px solid currentcolor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s ease;
}

.thank-product-card__details-button[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(225deg);
}

.thank-product-card__description {
    display: grid;
    grid-template-rows: 0fr;
    color: #505965;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    transition: grid-template-rows 0.3s ease;
}

.thank-product-card__description.is-open {
    grid-template-rows: 1fr;
}

.thank-product-card__description-inner {
    min-height: 0;
    overflow: hidden;
}

.thank-product-card__description-inner > :first-child {
    margin-top: 14px;
}

.thank-product-card__description-inner > :last-child {
    margin-bottom: 0;
}

.thank-product-card__order-button {
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 11px 16px;
    border: 0;
    border-radius: 5px;
    background: #08a84e;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.thank-product-card__order-button:hover:not(:disabled) {
    background: #078c42;
}

.thank-product-card__order-button:disabled {
    cursor: default;
    opacity: 0.68;
}

.thank-product-card__order-button[aria-busy="true"] {
    cursor: wait;
}

.thank-product-card__order-status {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.thank-product-card__order-status.is-pending {
    color: #475569;
}

.thank-product-card__order-status.is-success {
    color: #078c42;
}

.thank-product-card__order-status.is-error {
    color: #b42318;
}

@media (prefers-reduced-motion: reduce) {
    .thank-product-card__details-button::after,
    .thank-product-card__description {
        transition: none;
    }
}

.thank-page__custom-html {
    margin-top: 32px;
}

@media (max-width: 800px) {
    .thank-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .thank-page {
        padding: 24px 14px 48px;
    }

    .thank-page__header {
        margin-bottom: 22px;
    }

    .thank-page__content {
        margin-bottom: 24px;
        font-size: 16px;
    }

    .thank-products {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}
