html.im-modal-open,
body.im-modal-open {
    overflow: hidden;
}

/* ============================= */
/* SHIPPING BOX - COMPACTO       */
/* ============================= */

.im-side-card--shipping {
    padding: 10px !important;
}

.im-shipping-box {
    background: #fff;
    border: 1px solid #d9e2e7;
    border-radius: 16px;
    padding: 10px;
    font-size: 13px;
    line-height: 1.25;
}

.im-shipping-tabs {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 10px;
    width: 100%;
}

.im-shipping-tab {
    border: none;
    background: #edf1f4;
    color: #24343b;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

    .im-shipping-tab.is-active {
        background: #26343b;
        color: #fff;
    }

.im-shipping-panel {
    display: none;
}

    .im-shipping-panel.is-active {
        display: block;
    }

.im-shipping-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e3e8ec;
}

.im-shipping-item--last {
    border-bottom: none;
}

.im-shipping-item__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f3f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex: 0 0 34px;
}

.im-shipping-item__content {
    flex: 1;
    min-width: 0;
}

.im-shipping-link {
    font-size: 13px;
    font-weight: 800;
    color: #23343b;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    line-height: 1.2;
}

.im-shipping-sub {
    font-size: 12px;
    color: #6b7f88;
    margin-top: 2px;
    line-height: 1.3;
}

.im-shipping-item__price {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    margin-left: 8px;
    align-self: center;
}

.im-buy-card__purchase-form {
    width: 100%;
}

    .im-buy-card__purchase-form .im-btn {
        width: 100%;
    }

.im-buy-card__owner-note {
    font-size: 13px;
    color: #64748b;
}

/* ============================= */
/* MODAL                         */
/* ============================= */

.im-modal[aria-hidden="true"] {
    display: none;
}

.im-modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.im-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.im-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.im-modal__dialog {
    position: relative;
    width: 420px;
    max-width: 92%;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.im-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #2c3e46;
}

.im-modal__title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #0f172a;
}

.im-modal__text {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 12px;
}

.im-modal__list {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    padding-left: 18px;
    margin: 0 0 18px;
}

    .im-modal__list li {
        margin-bottom: 8px;
    }

.im-modal__option {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    align-items: flex-start;
}

.im-modal__icon {
    font-size: 20px;
    width: 26px;
    flex: 0 0 26px;
}

.im-modal__option-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.im-modal__link {
    font-size: 14px;
    color: #007782;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .im-shipping-box {
        padding: 9px;
        border-radius: 14px;
    }

    .im-shipping-tabs {
        gap: 5px;
        margin-bottom: 8px;
    }

    .im-shipping-tab {
        padding: 7px 10px;
        font-size: 11.5px;
    }

    .im-shipping-item {
        gap: 8px;
        padding: 7px 0;
    }

    .im-shipping-item__icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 14px;
    }

    .im-shipping-link {
        font-size: 12.5px;
    }

    .im-shipping-sub {
        font-size: 11.5px;
    }

    .im-shipping-item__price {
        font-size: 12px;
    }

    .im-modal__dialog {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        padding: 20px 18px;
        border-radius: 16px;
    }
}
