:root {
    --estaly-primary-color: #008EB8;
    --estaly-uniq-primary-color: black;
    --estaly-border-color: #008EB8;
    --estaly-text-color: black;
    --estaly-multiple-button-text-color: black;
    --estaly-active-multiple-button-text-color: #454545;
    --estaly-active-uniq-button-text-color: white;
}

/* --- Product Page --- */

.estaly-pdp-offering {
    display: none;
    margin-bottom: 20px;
}

.estaly-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estaly-flex-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.estaly-headline-buttons {
    color: #1a1c1d;
    font-weight: 800;
    max-width: 75%;
    line-height: 21px;
    display: inline;
    font-size: 17px;
    margin-bottom: 10px;
}

.estaly-logo-full {
    width: 50px;
    height: auto;
    vertical-align: middle;
}

.estaly-link-buttons {
    font-size: 13px;
    color: var(--estaly-active-multiple-button-text-color);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: .2rem;
}

.estaly-more-details {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estaly-offers-logo {
    height: 17.5px !important;
    width: 150px !important;
}

/* --- Offers --- */

.estaly-button-group {
    display: flex;
    justify-content: center;
}

.estaly-pdp-terms-link {
    text-decoration: underline !important;
    color: var(--estaly-border-color) !important;
}

/* Multiple offers */

.estaly-offer-button.multiple {
    position: relative;
    border-radius: 0.25rem;
    border: 1px solid #dadce0 !important;
    box-sizing: border-box;
    padding: 1rem;
    flex: 1;
    font-size: 16px;
    line-height: 23px;
    justify-content: center;
}

.estaly-best-seller-offer {
    font-weight: bold;
    color: black;
    padding: 2px 5px;
    font-size: 12px;
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgb(229 231 235);
    border-bottom-left-radius: 0.25rem;
}

.estaly-offer-button.multiple + .estaly-offer-button.multiple {
    margin-left: 2rem;
}

.estaly-offer-price,
.estaly-offer-term-length {
    font-weight: bold;
}

.estaly-offer-price {
    margin-top: 0.7rem;
}

/* Uniq offer */

.estaly-offer-button.uniq {
    background-color: white !important;
    box-shadow: 0px 0px 7px rgba(0, 142, 184, 0.2);
    display: flex;
    justify-content: space-between;
    height: 41.59px;
    cursor: pointer;
    text-align: center;
    background: transparent;
    border-radius: 0.5em;
    color: var(--estaly-text-color);
    width: 99%;
    align-items: center;
}

.estaly-offer-uniq-button-left-side {
    display: flex;
    margin-left: 12px;
    align-items: center;
}

.estaly-offer-button.uniq.active > .estaly-offer-uniq-button-left-side > .estaly-offer-uniq-button-checkbox {
    background-color: rgb(0, 142, 184);
    color: white;
}

.estaly-offer-button.uniq.active > .estaly-offer-uniq-button-left-side > .estaly-offer-uniq-button-checkbox .estaly-uniq-check {
    visibility: visible;
}

.estaly-offer-uniq-button-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.2rem;
    height: 17px;
    margin-right: 10px;
    color: transparent;
}

.estaly-uniq-check {
    visibility: hidden;
}

.estaly-offer-uniq-button-price {
    font-weight: bold !important;
    margin-right: 14px;
}

.estaly-offer-uniq-button-title {
    font-size: 13px;
    display: flex;
    align-items: center;
}

.estaly-terms-and-conditions {
    margin-left: 10px;
    font-size: 11px;
    display: block;
}

/* PC Offers */

@media (hover: hover) and (pointer: fine) {
    .estaly-offer-button.multiple {
        text-align: center;
        background: transparent;
        color: var(--estaly-text-color);
        cursor: pointer;
    }

    .estaly-offer-button.multiple.active {
        border: 1px solid rgb(0, 142, 184) !important;
        outline: 1px solid rgb(0, 142, 184) !important;
        background-color: rgb(243 244 246 / 45%);
    }

    .estaly-offer-button.multiple:hover {
        border: 1px solid rgb(0, 142, 184) !important;
        outline: 1px solid rgb(0, 142, 184) !important;
        background-color: rgb(243 244 246 / 45%);
    }

    .estaly-offer-button.multiple.active .estaly-best-seller-offer {
        color: white;
        background-color: rgb(0, 142, 184) !important;
    }

    .estaly-offer-button.multiple:hover .estaly-best-seller-offer {
        color: white;
        background-color: rgb(0, 142, 184) !important;
    }

    .estaly-offer-button.uniq {
        border: 0.1px solid rgb(209 213 219);
        box-shadow: 0px 0px 10px rgb(72 72 173 / 15%);
    }

    .estaly-offer-button.uniq.active {
        border-color: rgb(209 213 219);
    }

    .estaly-offer-button.uniq:hover {
        border-color: rgb(209 213 219);
    }
}

/* Mobile Offers */

@media (hover: none) and (pointer: coarse) {
    .estaly-offer-button.multiple {
        text-align: center;
        background: transparent;
        color: var(--estaly-multiple-button-text-color);
        cursor: pointer;
    }

    .estaly-offer-button.multiple.active {
        border: 1px solid rgb(0, 142, 184) !important;
        outline: 1px solid rgb(0, 142, 184) !important;
        background-color: rgb(243 244 246 / 45%);
    }

    .estaly-offer-button.multiple.active .estaly-best-seller-offer {
        color: white;
        background-color: rgb(0, 142, 184) !important;
    }

    .estaly-offer-button.uniq {
        border: 1px solid rgb(209 213 219);
    }

    .estaly-offer-button.uniq.active {
        border: 1px solid rgb(209 213 219);
        box-shadow: 0 0 0 1px inset rgb(209 213 219);
    }
}

/* --- Modal --- */

.estaly-modal-dialog {
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 21474836465;
}

.estaly-modal-dialog:target {
    opacity: 1;
    pointer-events: auto;
}

.estaly-modal-content {
    max-width: 520px;
    width: 90%;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    position: relative;
    z-index: 100;
}

.estaly-content-container {
    width: 100%;
    color: black;
    padding: 2.5rem 2.5rem 2rem;
    text-align: left;
    box-sizing: border-box;
}

.estaly-close {
    color: #666;
    font-size: 18px;
    line-height: 32px;
    position: absolute;
    top: 12px;
    right: 12px;
    text-align: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.15s, color 0.15s;
}

.estaly-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.estaly-logo {
    width: 48px;
    height: auto;
}

.estaly-modal-logo {
    max-height: 4rem;
    max-width: 14rem;
}

.estaly-logo-container {
    align-items: center;
    display: flex;
    margin-bottom: 0.5rem;
}

.estaly-plus {
    width: 15px;
    height: 15px;
    margin-left: 1.2rem;
    margin-right: 1.2rem;
}

.estaly-subheading {
    margin-bottom: 0px !important;
    padding-top: 1rem;
    padding-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.9rem;
}

.estaly-coverage-header {
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.5rem;
}

.estaly-list {
    font-size: 14px;
    margin-top: 0.4rem;
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.estaly-list-item {
    font-weight: normal;
    line-height: 1.7rem;
    text-align: left;
    list-style: disc;
    margin-bottom: 0.2rem;
}

.estaly-link-container {
    margin-top: 1.2rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.estaly-terms-link {
    color: var(--estaly-active-multiple-button-text-color) !important;
    text-decoration: underline !important;
    text-underline-offset: .2rem;
}

.estaly-error-selection {
    margin-bottom: 10px;
    margin-top: 10px;
    visibility: hidden;
    color: #008EB8;
    font-size: 0.8em;
}

.estaly-buttons-container {
    display: block;
}

.estaly-choice-container {
    display: flex;
    justify-content: space-between;
}

.estaly-button-link {
    padding: 10px 14px;
    background-color: rgb(229 231 235);
    border: none;
    color: black;
    cursor: pointer;
    border-radius: 4px;
}

.estaly-button-submit {
    background: var(--estaly-primary-color);
    border-radius: 4px !important;
    border-width: 0rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    line-height: 100%;
    padding: 10px 14px;
}

/* Mobile Modal */

@media (max-width: 800px) {
    .estaly-modal-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .estaly-link-container {
        font-size: 14px !important;
        text-align: center;
    }

    .estaly-choice-container button {
        font-size: 12px !important;
        margin-right: 15px;
    }

    .estaly-modal-dialog {
        z-index: 21474836465;
    }
}

/* --- Cart --- */

.estaly-cart-offer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 4px;
    box-sizing: border-box;
}

.estaly-logo-cart {
    width: 52px;
    height: auto;
    flex-shrink: 0;
}

.estaly-cart-offer-content {
    flex: 1;
    min-width: 0;
}

.estaly-cart-offer-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--estaly-primary-color);
    line-height: 1.3;
    margin: 0;
}

.estaly-cart-offer-description {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin: 2px 0 0;
}

.estaly-cart-offer-price {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
    color: #1a1c1d;
}

.estaly-cart-add-btn {
    background: var(--estaly-primary-color);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 9px 22px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.estaly-cart-add-btn:hover {
    opacity: 0.88;
}

.estaly-cart-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #999;
    color: #999;
    font-size: 11px;
    font-style: italic;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    transition: border-color 0.15s, color 0.15s;
}

.estaly-cart-info-btn:hover {
    border-color: var(--estaly-primary-color);
    color: var(--estaly-primary-color);
}
