/* FineCenter Delivery Policy */

.fc-dp-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 6px 0 0;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    direction: rtl;
}

.fc-dp-badge--c {
    background: #fbe9e7;
    color: #9b2c22;
}

.fc-dp-badge--s {
    background: #fff4d8;
    color: #725000;
}

.fc-dp-badge--st {
    background: #eee9fb;
    color: #493783;
}

.fc-dp-product-notice {
    display: grid;
    gap: 4px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid #d8c179;
    border-right-width: 5px;
    border-radius: 7px;
    background: #fffaf0;
    color: #2b2b2b;
    direction: rtl;
    text-align: right;
}

.fc-dp-product-notice strong {
    font-size: 15px;
}

.fc-dp-product-notice span {
    font-size: 13px;
    line-height: 1.55;
}

.fc-dp-product-notice--c {
    border-color: #c45145;
    background: #fff4f2;
}

.fc-dp-product-notice--st {
    border-color: #7964ad;
    background: #f8f5ff;
}

.fc-dp-cart-notice,
.fc-dp-customer-order-notice {
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid #d8c179;
    border-right-width: 6px;
    border-radius: 8px;
    background: #fffaf0;
    color: #252525;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.fc-dp-cart-notice--c {
    border-color: #c45145;
    background: #fff4f2;
}

.fc-dp-cart-notice--st {
    border-color: #7964ad;
    background: #f8f5ff;
}

.fc-dp-cart-notice__title {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 800;
}

.fc-dp-cart-notice p,
.fc-dp-customer-order-notice p {
    margin: 0;
    line-height: 1.65;
}

.fc-dp-cart-notice__items {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.fc-dp-cart-notice__items li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 7px;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.fc-dp-remove-item {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid currentColor;
    border-radius: 5px;
    color: #8d2c25;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.fc-dp-mini-cart-notice .fc-dp-cart-notice {
    margin: 10px 0;
    padding: 11px 12px;
    border-right-width: 4px;
}

.fc-dp-mini-cart-notice .fc-dp-cart-notice__title {
    font-size: 14px;
}

.fc-dp-mini-cart-notice .fc-dp-cart-notice p,
.fc-dp-mini-cart-notice .fc-dp-cart-notice__items {
    font-size: 12px;
}

.woocommerce-mini-cart-item .fc-dp-badge,
.woocommerce-cart-form__cart-item .fc-dp-badge {
    display: flex;
    margin-top: 5px;
}

@media (max-width: 767px) {
    .fc-dp-cart-notice,
    .fc-dp-customer-order-notice {
        padding: 13px 14px;
    }

    .fc-dp-cart-notice__title {
        font-size: 16px;
    }

    .fc-dp-cart-notice__items li {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Grid policy popover */
.fc-dp-popover-wrap {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    direction: rtl;
}

.fc-dp-badge-button {
    gap: 6px;
    border: 0;
    appearance: none;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    user-select: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.fc-dp-badge-button:hover,
.fc-dp-badge-button:focus-visible,
.fc-dp-popover-wrap.is-open .fc-dp-badge-button {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.13);
    outline: none;
}

.fc-dp-badge-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(74, 102, 173, 0.24), 0 3px 10px rgba(0, 0, 0, 0.13);
}

.fc-dp-badge__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    font-family: Arial, sans-serif;
    opacity: 0.82;
}

.fc-dp-popover[hidden] {
    display: none !important;
}

.fc-dp-popover {
    position: fixed;
    z-index: 1000010;
    display: grid;
    gap: 8px;
    width: min(330px, calc(100vw - 24px));
    max-height: min(420px, calc(100vh - 24px));
    overflow: auto;
    box-sizing: border-box;
    padding: 17px 18px 15px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
    color: #242424;
    direction: rtl;
    text-align: right;
    font-size: 13px;
    line-height: 1.55;
}

.fc-dp-popover__close {
    position: absolute;
    top: 7px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    cursor: pointer;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.fc-dp-popover__close:hover,
.fc-dp-popover__close:focus-visible {
    background: #f1f1f1;
    color: #111;
    outline: none;
}

.fc-dp-popover__title {
    display: block;
    padding-left: 25px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.fc-dp-popover__text {
    display: block;
}

.fc-dp-popover__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 3px;
    padding-top: 9px;
    border-top: 1px solid #e5e5e5;
}

.fc-dp-popover__price strong {
    white-space: nowrap;
    font-size: 15px;
}

@media (max-width: 767px) {
    .fc-dp-popover {
        width: min(310px, calc(100vw - 20px));
        padding: 16px 15px 14px;
    }
}

/* Dynamic-policy behavior colors (also cover new API codes such as B). */
.fc-dp-behavior--pickup-only .fc-dp-badge,
.fc-dp-badge.fc-dp-behavior--pickup-only,
.fc-dp-product-notice.fc-dp-behavior--pickup-only,
.fc-dp-cart-notice.fc-dp-behavior--pickup-only,
.fc-dp-customer-order-notice.fc-dp-behavior--pickup-only {
    border-color: #c45145;
    background: #fff4f2;
    color: #8f2f27;
}

.fc-dp-behavior--force-existing .fc-dp-badge,
.fc-dp-badge.fc-dp-behavior--force-existing {
    background: #fff4d8;
    color: #725000;
}

.fc-dp-product-notice.fc-dp-behavior--force-existing,
.fc-dp-cart-notice.fc-dp-behavior--force-existing,
.fc-dp-customer-order-notice.fc-dp-behavior--force-existing {
    border-color: #d8c179;
    background: #fffaf0;
}

.fc-dp-behavior--quote .fc-dp-badge,
.fc-dp-badge.fc-dp-behavior--quote {
    background: #eee9fb;
    color: #493783;
}

.fc-dp-product-notice.fc-dp-behavior--quote,
.fc-dp-cart-notice.fc-dp-behavior--quote,
.fc-dp-customer-order-notice.fc-dp-behavior--quote {
    border-color: #7964ad;
    background: #f8f5ff;
}

.fc-dp-badge--b {
    background: #e8f3fa;
    color: #195878;
}
