/* ============================================================
   COMMISSION POLICY LANDING SECTION (Chính sách hoa hồng)
   ============================================================ */

.lh-policy-section {
    padding: 32px 0;
    background-color: #fff;
}

/* ----- Split Column Main Row (70/30 Layout) ----- */

.lh-policy-main-row {
    display: grid;
    grid-template-columns: 7.5fr 2.5fr;
    gap: 24px;
    align-items: start;
}

.lh-policy-main-left {
    min-width: 0;
}

.lh-policy-main-right {
    min-width: 0;
}

/* ----- Header Block (Matches the provided screenshot) ----- */

.lh-policy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
}

.lh-policy-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 70%;
}

.lh-policy-header-right {
    display: flex;
    align-items: center;
}

.lh-policy-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #081735;
    margin: 0;
    line-height: 1.2;
}

.lh-policy-subtitle {
    font-size: 14px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.lh-policy-faq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
}

.lh-policy-faq-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.lh-policy-faq-icon {
    font-size: 18px;
    color: #475569;
}


/* ----- General Regulations Section (Quy định chung) ----- */

.lh-policy-rules-section {
    margin-top: 40px;
}

.lh-policy-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #081735;
    margin: 0 0 24px 0;
}

/* Desktop Horizontal Grid of 5 Cards */
.lh-rules-desktop-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.lh-rule-card {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lh-rule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.03);
}

.lh-rule-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.lh-rule-card-icon span {
    font-size: 24px;
}

.lh-rule-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.lh-rule-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Soft color circles for icons */
.bg-light-orange {
    color: #ea580c;
    background-color: #fff7ed;
    box-shadow: 0 0 0 4px #ffedd5;
}

.bg-light-blue {
    color: #2563eb;
    background-color: #eff6ff;
    box-shadow: 0 0 0 4px #dbeafe;
}

.bg-light-green {
    color: #16a34a;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 4px #dcfce7;
}

.bg-light-purple {
    color: #7c3aed;
    background-color: #f5f3ff;
    box-shadow: 0 0 0 4px #ede9fe;
}

.bg-light-red {
    color: #ef4444;
    background-color: #fef2f2;
    box-shadow: 0 0 0 4px #fee2e2;
}

/* Mobile Accordion View styles */
.lh-rules-mobile-accordion {
    display: none;
    /* Hidden on desktop */
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 8px 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

.lh-accordion-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
}

.lh-accordion-item:last-child {
    border-bottom: none;
}

.lh-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.lh-accordion-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lh-accordion-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lh-accordion-icon span {
    font-size: 18px;
}

.lh-accordion-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.lh-accordion-chevron {
    font-size: 18px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.lh-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
}

.lh-accordion-content-inner {
    padding: 8px 0px 8px 48px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ----- Non-commission Cases Section (Trường hợp không tính hoa hồng) ----- */

.lh-policy-non-comm-section {
    margin-top: 40px;
}

.lh-non-comm-card {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.lh-non-comm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
}

.lh-non-comm-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lh-non-comm-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lh-non-comm-icon {
    color: #ef4444;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.lh-non-comm-text {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
}

/* Warning Notification Bar at Footer */
.lh-policy-warning-bar {
    margin-top: 24px;
    background-color: #fff6f0;
    border: 1px solid #ffdcd0;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.lh-warning-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lh-warning-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ff4d00;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lh-warning-icon-circle span {
    font-size: 24px;
}

.lh-warning-text-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lh-warning-main-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

.lh-warning-sub-text {
    font-size: 13px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.lh-warning-bar-right {
    display: flex;
    align-items: center;
}

.lh-last-update-box {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

/* Responsive Media Queries for Section 3 */
@media (max-width: 767px) {
    .lh-non-comm-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lh-policy-warning-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 16px;
    }

    .lh-warning-bar-left {
        align-items: flex-start;
    }

    .lh-warning-bar-right {
        width: 100%;
    }

    .lh-last-update-box {
        width: 100%;
        text-align: center;
    }

    .lh-rules-desktop-grid {
        display: none;
    }

    .lh-rules-mobile-accordion {
        display: block;
    }
}

/* Zalo Support Sidebar Widget */
.bv-support-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.bv-support-desc {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.bv-support-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bv-btn-zalo-join {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background-color: #0068ff;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    text-align: center;
    cursor: pointer;
}

.bv-btn-zalo-join:hover {
    background-color: #0056d6;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.2);
}

.bv-btn-zalo-join:active {
    transform: scale(0.98);
}

.bv-zalo-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.bv-zalo-logo:hover {
    transform: rotate(8deg) scale(1.05);
}

.bv-support-widget {
    margin-top: 24px;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

/* Commission Marketing Banner Widget */
.lh-policy-banner-widget {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.lh-banner-widget-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #451a03;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.lh-banner-widget-subtitle {
    font-size: 12.5px;
    color: #78350f;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.lh-banner-widget-img {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 20px auto;
}

.lh-banner-widget-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.lh-banner-widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #ff4d00;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lh-banner-widget-btn:hover {
    background-color: #e04300;
    box-shadow: 0 4px 12px rgba(255, 77, 0, 0.25);
    color: #ffffff !important;
}

.lh-banner-widget-btn:active {
    transform: scale(0.98);
}

.lh-banner-widget-btn .btn-arrow {
    font-size: 16px;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */

@media (max-width: 991px) {
    .lh-policy-main-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lh-policy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .lh-policy-header-left {
        max-width: 100%;
    }

    .lh-policy-faq-btn {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .lh-policy-section {
        padding: 24px 0;
    }

    .lh-policy-main-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .lh-policy-section-title {
        margin-bottom: 10px;
    }
}

/* ============================================================
   COMMISSION RATES BY CATEGORY (Tỷ lệ hoa hồng theo ngành hàng)
   ============================================================ */

.lh-policy-commission-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Desktop 5-Column Grid */
.lh-comm-desktop-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.lh-comm-card {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.lh-comm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.lh-comm-card.lh-comm-card-highlight {
    border: 1.5px solid #ffedd5;
    background-color: #fffdfa;
}

.lh-comm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.lh-comm-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Background colors for circles */
.bg-comm-orange {
    background-color: #fff1eb;
}

.bg-comm-pink {
    background-color: #fce7f3;
}

.bg-comm-blue {
    background-color: #eff6ff;
}

.bg-comm-green {
    background-color: #f0fdf4;
}

.bg-comm-purple {
    background-color: #f3e8ff;
}

.bg-comm-teal {
    background-color: #e6fdf9;
}

.bg-comm-orange-light {
    background-color: #fff7ed;
}

.bg-comm-red {
    background-color: #fef2f2;
}

.bg-comm-purple-light {
    background-color: #f5f3ff;
}

.bg-comm-gray {
    background-color: #f1f5f9;
}

.lh-comm-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
}

.lh-comm-card-body {
    text-align: center;
}

.lh-comm-card-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.1;
}

.text-orange {
    color: #ff4d00;
}

.text-blue {
    color: #2563eb;
}

.text-green {
    color: #16a34a;
}

.text-purple {
    color: #7c3aed;
}

.text-teal {
    color: #0d9488;
}

.text-red {
    color: #dc2626;
}

.text-gray {
    color: #64748b;
}

.lh-comm-card-scope {
    font-size: 12px;
    color: #94a3b8;
}

/* Mobile List Accordion */
.lh-comm-mobile-list {
    display: none;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 8px 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
    margin-bottom: 20px;
}

.lh-comm-mobile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.lh-comm-mobile-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lh-comm-mobile-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.lh-comm-mobile-item-value {
    font-size: 16px;
    font-weight: 700;
}

.lh-comm-mobile-toggle-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0068ff;
    cursor: pointer;
    transition: color 0.2s;
    outline: none;
}

.lh-comm-mobile-toggle-btn:hover {
    color: #0052cc;
}

.lh-comm-mobile-toggle-btn .toggle-chevron {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Info Warning Banner */
.lh-comm-info-banner {
    background-color: #f0f7ff;
    border: 1px solid #e0f2fe;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.lh-comm-info-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lh-comm-info-banner-left .icon-info {
    font-size: 20px;
    color: #0284c7;
    flex-shrink: 0;
}

.lh-comm-info-banner-left .text-info {
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
}

.lh-comm-info-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0068ff !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.lh-comm-info-banner-link:hover {
    color: #0052cc !important;
    text-decoration: underline;
}

.lh-comm-info-banner-link .icon-arrow {
    font-size: 16px;
}

/* Responsive Rules */
@media (max-width: 991px) {
    .lh-comm-desktop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .lh-comm-desktop-grid {
        display: none;
    }

    .lh-comm-mobile-list {
        display: block;
    }

    .lh-comm-info-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .lh-comm-info-banner-link {
        margin-left: 28px;
    }
}

@media (max-width: 480px) {
    .lh-comm-desktop-grid {
        display: none;
    }

    .lh-comm-mobile-list {
        display: block;
    }
}

/* ============================================================
   COMMISSION CALCULATION EXAMPLE WIDGET
   ============================================================ */
.lh-commission-calc-widget {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.lh-calc-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.lh-calc-widget-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.lh-calc-card-box {
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.lh-calc-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.lh-calc-product-img-box {
    width: 64px;
    height: 64px;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}

.lh-calc-product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lh-calc-product-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lh-calc-product-cat {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.3;
}

.lh-calc-product-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.lh-calc-row-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 14px;
}

.lh-calc-label-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lh-calc-label {
    font-size: 13.5px;
    color: #475569;
    font-weight: 500;
}

.lh-calc-sublabel {
    font-size: 11.5px;
    color: #64748b;
}

.lh-calc-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.lh-calc-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 16px 0;
}

.lh-calc-row-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lh-calc-result-label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.lh-calc-result-value {
    font-size: 18px;
    font-weight: 800;
    color: #16a34a;
    /* Pleasant green matching the image */
    text-align: right;
}

.lh-calc-disclaimer {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .lh-commission-calc-widget {
        padding: 16px;
    }

    .lh-calc-card-box {
        padding: 12px;
    }
}