/*
 * @copyright Copyright (c) valantic CEC Deutschland GmbH (https://www.valantic.com)
 * @see       PROJECT_LICENSE.txt
 */

@keyframes mey-size-advisor-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.size-advisor-container {
    color: #191919;
    font-family: CircularXX, Helvetica Neue, Arial, sans-serif;
}

.size-advisor-pdp-message {
    margin: 0 10px 16px;
    text-align: center;
}

.size-advisor-pdp-message__inner {
    align-items: center;
    display: flex;
    font-size: 13px;
    gap: 10px;
    justify-content: center;
    line-height: 1.45;
    padding: 12px 14px;
    text-align: center;
}

.size-advisor-pdp-message__text {
    flex: 0 1 auto;
}

.size-advisor-pdp-message__text strong {
    font-weight: 700;
}

.size-advisor-pdp-message__inner--success {
    background: #def1e2;
    color: #191919;
}

.size-advisor-pdp-message__inner--error {
    background: #f5f5f5;
    color: #191919;
}

.size-advisor-pdp-message__inner--neutral {
    background: #f8f8f8;
    color: #343434;
}

.size-advisor-dialog {
    display: flex;
    max-height: 100vh;
    overflow: hidden;
    overscroll-behavior: contain;
    width: 100vw;
}

@media (min-width: 768px) {
    .size-advisor-dialog {
        width: min(calc(100vw - 20px), 1077px);
    }
}

.size-advisor-container input[type='number']::-webkit-inner-spin-button,
.size-advisor-container input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.size-advisor-container input[type='number'] {
    -moz-appearance: textfield;
}

.gb-shell {
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    width: 100%;
}

.gb-header {
    align-items: center;
    background: #fff;
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    padding: 28px 36px 20px;
    position: sticky;
    top: 0;
    transition: box-shadow 0.2s ease;
    z-index: 10;
}

.gb-header-shadow {
    box-shadow: 0 3px 3px rgb(0 0 0 / 16%);
}

.gb-title {
    font-family: Bota, Georgia, Times New Roman, serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
    margin: 0;
}

.gb-close {
    align-items: center;
    background: none;
    border: 0;
    color: #191919;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 4px;
}

.gb-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 36px 36px;
}

.gb-tabs {
    background: #191919;
    display: grid;
    margin-bottom: 28px;
    margin-top: 20px;
    padding: 0;
}

.gb-tabs--women {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gb-tabs--men {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gb-saved-overview {
    border: 1px solid #d5d5d5;
    margin-bottom: 24px;
    padding: 14px 16px;
}

.gb-saved-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.gb-saved-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gb-saved-item {
    align-items: center;
    border: 1px solid #d5d5d5;
    display: flex;
    justify-content: space-between;
    min-height: 40px;
}

.gb-saved-item-active {
    border-color: #191919;
}

.gb-saved-use {
    align-items: center;
    background: transparent;
    border: 0;
    color: #191919;
    cursor: pointer;
    display: inline-flex;
    flex: 1;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 12px;
    text-align: left;
}

.gb-saved-label {
    font-size: 13px;
    text-transform: capitalize;
}

.gb-saved-value {
    font-size: 14px;
    font-weight: 700;
}

.gb-saved-remove {
    background: transparent;
    border: 0;
    color: #636363;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    min-height: 40px;
    min-width: 36px;
    padding: 0;
}

.gb-tab {
    border: 1px solid #191919;
    cursor: pointer;
    font-family: CircularXX, Helvetica Neue, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.04em;
    padding: 12px 0;
    position: relative;
    transition: none;
}

.gb-tab-active {
    background: #191919;
    color: #fff;
    font-weight: 700;
    z-index: 2;
}

.gb-tab-inactive {
    background: #fff;
    color: #191919;
    font-weight: 400;
    z-index: 1;
}

.gb-tab-inactive:hover,
.gb-tab-inactive:focus-visible {
    background: #191919;
    color: #fff;
}

.gb-content-inner {
    display: flex;
    flex-direction: column;
}

.gb-phase {
    animation: mey-size-advisor-fade-up 0.35s ease;
}

.gb-grid {
    align-items: center;
    display: grid;
    gap: 16px 32px;
    grid-template-columns: 427px minmax(0, 1fr);
}

.gb-grid-content {
    display: contents;
}

.gb-img {
    aspect-ratio: 427 / 187;
    background-color: #fff;
    display: block;
    overflow: hidden;
    width: 100%;
}

.gb-img__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gb-field-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.gb-field-copy {
    color: #636363;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.gb-value-row {
    align-items: baseline;
    display: flex;
    gap: 4px;
    height: 34px;
    margin-bottom: 10px;
}

.gb-value {
    border-bottom: 1px dashed #a7a7a7;
    cursor: pointer;
    font-size: 28px;
    font-weight: 700;
    line-height: 34px;
}

.size-advisor-container .gb-value-input[type='number'] {
    -moz-appearance: textfield;
    appearance: textfield;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed #a7a7a7;
    box-shadow: none;
    color: #191919;
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    height: 34px;
    line-height: 34px;
    margin: 0;
    min-height: 0;
    outline: none;
    padding: 0;
    width: 3ch;
}

.size-advisor-container .gb-value-input[type='number']:focus,
.size-advisor-container .gb-value-input[type='number']:focus-visible {
    border: 0;
    border-bottom: 1px dashed #191919;
    box-shadow: none;
    outline: none;
}

.gb-unit {
    color: #636363;
    cursor: pointer;
    font-size: 16px;
    line-height: 34px;
}

.gb-slider-track {
    align-items: center;
    cursor: pointer;
    display: flex;
    height: 40px;
    position: relative;
    user-select: none;
}

.gb-slider-bg {
    background: #d5d5d5;
    border-radius: 2px;
    height: 3px;
    inset-inline: 0;
    position: absolute;
}

.gb-slider-fill {
    background: #191919;
    border-radius: 2px;
    height: 3px;
    inset-inline-start: 0;
    position: absolute;
}

.gb-slider-thumb {
    background: #191919;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgb(0 0 0 / 15%);
    cursor: grab;
    height: 24px;
    margin-top: -12px;
    position: absolute;
    top: 50%;
    transform: translateX(-50%);
    width: 24px;
}

.cup-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.cup-radio-label {
    align-items: center;
    color: #191919;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 400;
    gap: 10px;
    user-select: none;
}

.cup-radio-label input[type='radio'] {
    -webkit-appearance: none;
    appearance: none;
    border: 1.5px solid #a7a7a7;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    flex-shrink: 0;
    height: 20px;
    inset: auto;
    margin: 0;
    place-content: center;
    position: static;
    transition: border-color 0.2s ease;
    width: 20px;
}

.cup-radio-label > span {
    display: inline;
    position: static;
}

.cup-radio-label input[type='radio']::after {
    background: transparent;
    border-radius: 50%;
    content: '';
    height: 10px;
    transition: background 0.2s ease;
    width: 10px;
}

.cup-radio-label input[type='radio']:checked {
    border-color: #191919;
}

.cup-radio-label input[type='radio']:checked::after {
    background: #191919;
}

.gb-action-wrap {
    padding-bottom: 8px;
    padding-top: 24px;
}

.gb-action-wrap .btn,
.gb-btn-row .btn {
    max-width: 320px;
    width: 100%;
}

.gb-result-card {
    animation: mey-size-advisor-fade-up 0.35s ease;
    background: #f5f5f5;
    padding: 40px 36px 36px;
    text-align: center;
}

.gb-result-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 6px;
}

.gb-result-title {
    color: #191919;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

.gb-result-note {
    color: #636363;
    font-size: 13px;
    margin-bottom: 24px;
}

.gb-result-size {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    margin-bottom: 12px;
}

.gb-result-measure {
    color: #636363;
    font-size: 14px;
    margin-bottom: 32px;
}

.gb-result-measure strong {
    color: #191919;
}

.gb-result-hint {
    border-top: 1px solid #d5d5d5;
    color: #636363;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 28px;
    padding-top: 20px;
    text-align: center;
}

.gb-result-meta {
    color: #636363;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 16px;
    justify-content: center;
    margin-bottom: 28px;
}

.gb-result-meta strong {
    color: #191919;
}

.gb-btn-row {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.gb-remove-link {
    background: transparent;
    border: 0;
    color: #636363;
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .gb-header {
        padding: 24px 28px 16px;
    }

    .gb-tabs {
        margin-bottom: 24px;
        margin-top: 16px;
    }

    .gb-content {
        padding: 0 28px 28px;
    }

    .gb-grid {
        gap: 12px 24px;
        grid-template-columns: 280px minmax(0, 1fr);
    }

}

@media (max-width: 767px) {
    .size-advisor-container [x-ref='size-advisor'] {
        height: 100vh;
        height: 100dvh;
    }

    .gb-shell {
        height: 100%;
    }

    .gb-header {
        padding: 20px 20px 14px;
    }

    .gb-tabs {
        margin-bottom: 20px;
        margin-top: 12px;
    }

    .gb-tab {
        letter-spacing: 0.02em;
        padding: 10px 0;
    }

    .gb-content {
        padding: 0 20px 20px;
    }

    .gb-grid {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .gb-result-card {
        padding: 32px 20px 28px;
    }

    .gb-btn-row {
        gap: 16px;
    }

    .cup-radio-group {
        gap: 16px;
    }
}
