html.framera-cart-popup-enabled .woocommerce-message:has([data-framera-cart-success]),
html.framera-cart-popup-enabled .wc-block-components-notice-banner:has([data-framera-cart-success]),
html.framera-cart-popup-enabled a.added_to_cart.wc-forward {
    display: none !important;
}

#framera-cart-popup {
    --framera-primary: #798831;
    --framera-primary-hover: #5d6926;
    direction: rtl;
    font-family: Alexandria, Tahoma, Arial, sans-serif;
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    margin: auto;
    padding: 34px 26px 26px;
    border: 1px solid #dfd3c3;
    border-radius: 22px;
    background: #f8f5ef;
    color: #292620;
    text-align: center;
    box-shadow: 0 24px 80px #20160d33;
    overflow-y: auto;
}

#framera-cart-popup:not([open]) {
    display: none;
}

#framera-cart-popup::backdrop {
    background: #201b1666;
    backdrop-filter: blur(3px);
}

#framera-cart-popup * {
    box-sizing: border-box;
}

#framera-cart-popup .fcp-check {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(121, 136, 49, .4);
    border-radius: 50%;
    background: rgba(121, 136, 49, .12);
    color: var(--framera-primary);
}

#framera-cart-popup h2 {
    font: inherit;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.7;
    color: var(--framera-primary);
    margin: 0 0 26px;
}

#framera-cart-popup .fcp-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

#framera-cart-popup .fcp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 10px;
    border-radius: 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
    text-decoration: none;
    cursor: pointer;
    margin: 0;
    box-shadow: none;
    transition: transform .15s ease, background-color .2s ease, color .2s ease;
}

#framera-cart-popup .fcp-continue {
    color: var(--framera-primary);
    background: #fff;
    border: 1px solid var(--framera-primary);
}

#framera-cart-popup .fcp-cart {
    color: #fff;
    background: var(--framera-primary);
    border: 1px solid #fff;
}

#framera-cart-popup .fcp-button:hover {
    transform: translateY(-1px);
}

#framera-cart-popup .fcp-button:focus-visible {
    outline: 3px solid var(--framera-primary);
    outline-offset: 4px;
}

#framera-cart-popup .fcp-cart:hover {
    background: var(--framera-primary-hover);
}
#framera-cart-popup .fcp-continue:hover {
    background: rgba(121, 136, 49, .1);
}
#framera-cart-popup .fcp-button:active {
    transform: translateY(0) scale(.99);
}
#framera-cart-popup .fcp-check { position: relative; }
#framera-cart-popup .fcp-check::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 2px solid var(--framera-primary);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}
#framera-cart-popup[open] {
    animation: fcp-enter .3s ease-out both;
}
#framera-cart-popup[open] .fcp-check {
    animation: fcp-check-pop .55s cubic-bezier(.22, 1, .36, 1) .08s both;
}
#framera-cart-popup[open] .fcp-check path {
    stroke-dasharray: 1;
    animation: fcp-check-draw .4s ease-out .3s both;
}
#framera-cart-popup[open] .fcp-check::after {
    animation: fcp-check-ring .65s ease-out .25s both;
}
@keyframes fcp-enter {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fcp-check-pop {
    0% { opacity: 0; transform: scale(.65); }
    65% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes fcp-check-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}
@keyframes fcp-check-ring {
    from { opacity: .4; transform: scale(1); }
    to { opacity: 0; transform: scale(1.5); }
}

@media (max-width: 380px) {
    #framera-cart-popup { padding: 28px 18px 20px; }
    #framera-cart-popup h2 { font-size: 19px; }
    #framera-cart-popup .fcp-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    #framera-cart-popup .fcp-button { transition: none; }
    #framera-cart-popup[open],
    #framera-cart-popup[open] .fcp-check,
    #framera-cart-popup[open] .fcp-check path,
    #framera-cart-popup[open] .fcp-check::after { animation: none; }
    #framera-cart-popup .fcp-button:hover,
    #framera-cart-popup .fcp-button:active { transform: none; }
}
