/* PCI GPU Purchase Requirements: scoped to our own checkout warning. */
body.woocommerce-cart ul.woocommerce-error:has(.pci-gpu-notice) {
    margin: 0 0 22px !important;
    padding: 0 !important;
    list-style: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.woocommerce-cart ul.woocommerce-error:has(.pci-gpu-notice)::before {
    display: none !important;
}
body.woocommerce-cart ul.woocommerce-error li:has(.pci-gpu-notice) {
    display: block !important;
    position: relative;
    padding: 20px 22px !important;
    margin: 0 0 10px !important;
    border-radius: 9px;
    list-style: none !important;
    background: #fff9ed !important;
    box-shadow: 0 3px 12px rgba(21, 34, 77, 0.06);
    color: #243047;
}
body.woocommerce-cart ul.woocommerce-error li:has(.pci-gpu-notice)::before {
    display: none !important;
}
body.woocommerce-cart ul.woocommerce-error li:has(.pci-gpu-notice)::marker {
    content: '';
}
.pci-gpu-notice {
    color: #243047;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}
.pci-gpu-notice__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #13205b;
    font-size: 15px;
    font-weight: 500 !important;
}
.pci-gpu-notice__icon {
    display: inline-flex;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    background: #b76200;
    border-radius: 50%;
    color: white;
    font-size: 17px;
    font-weight: 800;
}
.pci-gpu-notice p {
    margin: 0 0 7px !important;
    padding: 0;
    line-height: 1.55;
    color: #253149;
}
.pci-gpu-notice__detail strong {
    color: #13205b;
    font-weight: 750;
}
.pci-gpu-notice__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 30px;
    margin-top: 13px;
}
.pci-gpu-notice__shop,
body.woocommerce-cart .pci-gpu-notice__shop {
    color: #081759 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 650;
}
.pci-gpu-notice__shop:hover,
.pci-gpu-notice__shop:focus-visible {
    color: #a55e00 !important;
}
/* Modal appears only after a customer clicks checkout with an invalid cart. */
.pci-gpu-modal[hidden] {
    display: none !important;
}
.pci-gpu-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.pci-gpu-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 16, 47, 0.7);
}
.pci-gpu-modal__panel {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 27px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 22px 80px rgba(0,0,0,.23);
    color: #1b2744;
}
.pci-gpu-modal__panel h2 {
    margin: 0 35px 20px 0 !important;
    font-size: 24px;
    font-weight: 700;
    color: #111d54;
    line-height: 1.3;
}
.pci-gpu-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf0f8;
    color: #111d54;
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
}
.pci-gpu-modal__close:hover,
.pci-gpu-modal__close:focus-visible {
    background: #dce2f2;
}
.pci-gpu-modal__description .pci-gpu-notice {
    padding: 17px 18px;
    border: 1px solid #ebc983;
    border-radius: 8px;
    background: #fff9ed;
}
.pci-gpu-modal__done {
    margin: 19px 0 0;
    padding: 11px 20px;
    border: 0;
    border-radius: 4px;
    background: #071456;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}
.pci-gpu-modal__done:hover,
.pci-gpu-modal__done:focus-visible {
    background: #182d87;
    color: white;
}
body.pci-gpu-modal-open {
    overflow: hidden;
}
@media (max-width: 600px) {
    body.woocommerce-cart ul.woocommerce-error li:has(.pci-gpu-notice) {
        padding: 16px !important;
    }
    .pci-gpu-modal__panel {
        padding: 21px 17px;
    }
    .pci-gpu-modal__panel h2 {
        font-size: 21px;
    }
}
@media (prefers-reduced-motion: no-preference) {
    .pci-gpu-modal__panel {
        animation: pci-gpu-modal-appear 160ms ease-out;
    }
    @keyframes pci-gpu-modal-appear {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
