:root {
    --brand-blue-dark: #004a99;
    --brand-blue-light: #e9f2ff;
    --text-dark: #202633;
    --text-light: #1e1e1e;
    --bg-light-gray: #f5f7fa;
    --border-color: #e4e7eb;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 2px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #f5f5f5;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 5px;
    border: 2px solid #f5f5f5;
}
.popup-body-v3 {
    scrollbar-width: thin;
    scrollbar-color: #999999 var(--bg-light-gray); /* thumb / track */
}

/* For Chrome, Safari, Edge, etc. */
.popup-body-v3::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.popup-body-v3::-webkit-scrollbar-track {
    background: var(--bg-light-gray);
    border-radius: 10px;
}
.popup-body-v3::-webkit-scrollbar-thumb {
    background-color: #999999;
    border-radius: 10px;
    border: 1px solid var(--bg-light-gray);
}
.popup-body-v3::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

/* * Modal Styling * */
.modal-popup.buyer-protection-modal-v3 .modal-inner-wrap {
    max-width: 860px;
    margin: 20px auto;
    border-radius: 16px;
    box-shadow: 0 12px 50px -12px rgba(0, 74, 153, 0.2);
    overflow: hidden;
    max-height: calc(97vh - 15px);
}
.buyer-protection-modal-v3 .modal-content {
    padding: 0;
}
/* * Popup Structure * */
.popup-inner-v3 {
    display: flex;
    flex-direction: column;
    background: var(--bg-light-gray);
    color: var(--text-dark);
}
/* * Popup Header * */
.buyer-protection-modal-v3 header.modal-header {
    display: none;
}
.popup-header-v3 {
    padding: 10px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(27 141 0);
    color: #fff;
}
img.buyer-protection-header-img {
    max-width: 45px;
}
/* This is our H1 replacement */
.popup-title-v3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.popup-close-btn-v3 {
    font-size: 28px;
    font-weight: 300;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.8;
    transition: all 0.2s ease;
}
.popup-close-btn-v3:hover {
    opacity: 1;
    color: var(--text-dark);
    transform: scale(1.1);
}

/* * Popup Body * */
.popup-body-v3 {
    padding: 24px;
    overflow-y: scroll;
    flex-grow: 1;
    max-height: 78vh;
    height: 100%;
}
.popup-intro-v3 {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    line-height: 1.6;
}
.popup-intro-v3 strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
}
/* * Policy Grid (2-column) * */
.policy-grid-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
/* * Policy Card * */
.policy-card-v3 {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.policy-card-v3:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 74, 153, 0.08);
    border-color: var(--brand-blue-dark);
}
.card-icon-v3 {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue-light);
    border-radius: 50%;
    flex-shrink: 0;
}
.card-icon-v3 svg {
    width: 22px;
    height: 22px;
    color: var(--brand-blue-dark);
}
.card-title-v3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}
.card-text-v3 {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}
.card-subtitle-v3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 15px;
    margin-bottom: 5px;
}
.policy-details-v3 {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
}
.policy-details-v3 .card-title-v3 {
    margin-bottom: 8px;
}

.policy-details-v3 .card-text-v3:first-of-type {
    margin-bottom: 16px;
}

.policy-details-v3 .card-subtitle-v3 {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.policy-details-v3 .card-subtitle-v3:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* * Popup Footer * */
.popup-footer-v3 {
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    text-align: center;
    flex-shrink: 0;
}
.popup-footer-v3 p {
    margin: 0;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}
.popup-footer-v3 p strong {
    color: var(--brand-blue-dark);
}
.card-icon-title-section {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}
.guarantee-popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3px;
    font-size: 12.5px;
    justify-items: start;
    font-weight: 500;
}
.guarantee-popup-list li {
    display: flex;
    align-items: flex-start;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.guarantee-popup-list li i {
    color: #fff;
    margin-right: 6px;
    font-size: 12.5px;
    background-color: #31af52;
    border-radius: 50%;
    padding: 4px;
    height: 19px;
}
.bp-icon i.fa.fa-check {
    color: #fff;
    font-size: 12.5px;
    background-color: #31af52;
    border-radius: 50%;
    padding: 4px;
    height: 19px;
}
.buyer-protection-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.bp-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.bp-content .bp-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #202633;
    margin-bottom: 5px;
}
.bp-item p {
    margin: 0;
    color: #5a657a;
    font-size: 14px;
    line-height: 1.5;
}
.buyer-protection-subtitle {
    font-size: 19px;
    font-weight: 700;
    color: #31af52;
    margin-bottom: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .buyer-protection-modal-v3 .modal-inner-wrap {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    .policy-grid-v3 {
        grid-template-columns: 1fr;
    }
    .popup-body-v3 {
        padding: 16px;
    }
    .popup-intro-v3,
    .policy-card-v3,
    .policy-details-v3 {
        padding: 20px;
    }
}