/*
 * VIVA_CART_DRAWER_V2
 *
 * CSS isolado do carrinho lateral.
 * O CSS principal da loja permanece intacto.
 */

.vf-drawer {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;

    display: flex !important;
    flex-direction: column !important;

    width: min(100vw, 560px) !important;

    height: 100vh !important;
    height: 100dvh !important;

    max-height: 100vh !important;
    max-height: 100dvh !important;

    margin: 0 !important;

    overflow: hidden !important;

    z-index: 10001 !important;
}

.vf-drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;

    z-index: 10000 !important;
}

.vf-drawer-heading {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    flex: 0 0 auto !important;

    margin: 0 !important;

    transform: none !important;
}

.vf-drawer-content {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    flex: 1 1 0 !important;

    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    overscroll-behavior: contain;

    padding-top: 14px !important;
}

.vf-drawer-content > .vf-drawer-line:first-child {
    margin-top: 0 !important;
}

.vf-drawer-line {
    position: relative !important;

    top: auto !important;

    flex-shrink: 0 !important;

    transform: none !important;
}

.vf-drawer-shipping-results {
    margin:
        10px
        0
        16px;

    padding:
        12px
        0
        4px;

    border-top:
        1px solid
        rgba(41, 66, 62, .12);
}

.vf-drawer-shipping-title {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    color: #29423e;
}

.vf-drawer-shipping-option {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 14px;

    width: 100%;

    margin: 7px 0;

    padding:
        11px
        12px;

    border:
        1px solid
        rgba(41, 66, 62, .16);

    border-radius: 10px;

    background: #fff;

    color: #29423e;

    text-decoration: none;
}

.vf-drawer-shipping-option:hover {
    border-color:
        rgba(41, 66, 62, .34);
}

.vf-drawer-shipping-option span {
    display: flex;

    min-width: 0;

    flex-direction: column;

    gap: 2px;
}

.vf-drawer-shipping-option strong {
    font-size: 13px;
}

.vf-drawer-shipping-option small {
    font-size: 11px;
    color: #6d7774;
}

.vf-drawer-shipping-option b {
    flex: 0 0 auto;

    font-size: 13px;

    white-space: nowrap;
}

.vf-drawer-shipping-message {
    margin: 0;

    padding:
        10px
        12px;

    border-radius: 9px;

    background:
        rgba(198, 229, 224, .35);

    font-size: 12px;

    line-height: 1.45;
}

.vf-drawer-shipping-message.is-error {
    background:
        rgba(170, 72, 72, .08);
}

.vf-drawer-shipping-message.is-warning {
    background:
        rgba(173, 139, 68, .09);
}

.vf-drawer-shipping-note {
    display: block;

    margin-top: 8px;

    color: #6d7774;

    font-size: 10.5px;
}

@media (max-width: 640px) {
    .vf-drawer {
        width: 100vw !important;
    }

    .vf-drawer-content {
        padding-top: 12px !important;
    }
}