/* Modal regras de entrega + mini-calendário checkout */
.fn-entrega-regras-modal[hidden] {
    display: none !important;
}

.fn-entrega-regras-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fn-entrega-regras-modal.is-open {
    display: flex;
}

.fn-entrega-regras-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.fn-entrega-regras-modal__card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(90vh, 640px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(45, 80, 22, 0.12);
}

.fn-entrega-regras-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 2px solid #2f3a33;
    border-radius: 50%;
    background: #fff;
    color: #2f3a33;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.fn-entrega-regras-modal__close:hover {
    background: rgba(163, 196, 154, 0.55);
    color: #1a5c32;
}

.fn-entrega-regras-modal__title {
    font-size: 1.35rem;
    color: #1a5c32;
    margin: 0 36px 16px 0;
    font-weight: 700;
}

.fn-entrega-regras-modal__body p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #334155;
}

.fn-entrega-regras-modal__chat {
    width: 100%;
    margin-top: 8px;
}

.fn-cal {
    margin-top: 12px;
    padding: 12px;
    background: #fafaf8;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
}

.fn-cal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: capitalize;
    color: #1a5c32;
}

.fn-cal__head button {
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

.fn-cal__dow,
.fn-cal__grade {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.fn-cal__dow span {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.fn-cal-dia {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 0;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
}

.fn-cal-dia:hover:not(:disabled) {
    background: rgba(163, 196, 154, 0.4);
}

.fn-cal-dia--sel {
    background: #2d5016 !important;
    color: #fff !important;
    font-weight: 700;
}

.fn-cal-dia--off,
.fn-cal-dia:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.fn-cal-dia--aviso:not(.fn-cal-dia--sel) {
    box-shadow: inset 0 0 0 2px #c9a227;
}

.fn-cal-vazio {
    display: block;
    min-height: 34px;
}

.checkout-calendario-inline {
    margin-top: 8px;
}
