 /* TENURE DROPDOWN */
.tenure-dropdown {
    position: relative;
    width: 100%;
    margin: 0 auto 5px;
}


/* SELECTED / MAIN BUTTON */
.tenure-dropdown-selected {
    position: relative;

    padding: 9px 9px 9px 9px;

    border: 1px solid #0d6efd;
    border-radius: 10px;

    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);

    cursor: pointer;

    transition: all .2s ease;
}

.tenure-dropdown-selected:hover {
    border-color: #3d8bfd;
}


/* Connect selected button with dropdown */

.tenure-dropdown.open .tenure-dropdown-selected {
    border-radius: 10px 10px 0 0;
}


/* ROW */

.tenure-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.tenure-row + .tenure-row {
    margin-top: 5px;
}


/* TENURE NAME */

.tenure-name {
    font-size: 15px;
    font-weight: 600;

    color: var(--bs-body-color);

    white-space: nowrap;
}


/* MAIN PRICE */

.tenure-price {
    margin-left: auto;
    font-size: 22px;
    font-weight: 800;
    color: var(--bs-body-color);
    white-space: nowrap;
}

.tenure-price .currency {
    font-style: normal;
    font-size: 15px;
    font-weight: 700;
}

.tenure-price span {
    font-size: 12px;
    font-weight: 500;

    margin-left: 2px;
}


/* OLD / STRIKE PRICE */

.tenure-old-price {
    font-size: 12px;

    color: var(--bs-secondary-color);

    white-space: nowrap;
}

.tenure-old-price .currency {
    font-style: normal;
}


/* DISCOUNT BADGE */

.discount-percent {
    margin-left: auto;

    padding: 4px 9px;

    background: #dc3545;
    color: #fff;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}


/* ARROW */

.tenure-arrow {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--bs-body-color);
    transition: transform .2s ease;
}

.tenure-dropdown.open .tenure-arrow {
    transform: rotate(180deg);
}


/* DROPDOWN CONTAINER */

.tenure-dropdown-options {
    display: none;

    position: absolute;

    z-index: 100;

    left: 0;
    right: 0;
    top: 100%;

    padding: 0;

    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);

    border: 1px solid #0d6efd;
    border-top: 0;

    border-radius: 0 0 10px 10px;

    overflow: hidden;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}


/* Show dropdown */

.tenure-dropdown.open .tenure-dropdown-options {
    display: block;
}


/* EACH TENURE OPTION */

.tenure-option {
    padding: 14px 16px;

    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);

    cursor: pointer;

    border-bottom: 1px solid var(--bs-border-color);

    transition:
        background-color .2s ease,
        color .2s ease;
}


/* Remove border from last option */

.tenure-option:last-child {
    border-bottom: 0;
}


/* HOVER — ALL 3 OPTIONS */

.tenure-option:hover {
    background-color: var(--bs-tertiary-bg) !important;
}


/* ACTIVE OPTION */

.tenure-option.active {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}


/* Active option also gets hover */

.tenure-option.active:hover {
    background-color: var(--bs-tertiary-bg) !important;
}


/* Keep active text normal — NO blue background */

.tenure-option.active .tenure-name,
.tenure-option.active .tenure-price {
    color: var(--bs-body-color);
}

.tenure-option.active .tenure-old-price {
    color: var(--bs-secondary-color);
}


.tenure-payable {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--bs-secondary-color);
}

.tenure-payable strong {
    color: var(--bs-body-color);
    font-weight: 700;
}

.tenure-payable span {
    font-size: 11px;
}

/* MOBILE */

@media (max-width: 576px) {

    .tenure-dropdown-selected {
        padding: 9px 9px 9px 9px;
    }

    .tenure-name {
        font-size: 14px;
    }

    .tenure-price {
        font-size: 20px;
    }

    .tenure-option {
        padding: 12px 14px;
    }

}