/*
Theme Name: Relivo (Elementor Child)
Theme URI: 
Description: Free child theme of Hello Elementor. Brand skin with same-page WooCommerce checkout matching exact custom design.
Author: 
Template: hello-elementor
Version: 1.1.0
Text Domain: relivo-child
*/

/* =========================================================
   0. BRAND STYLESHEET (Embedded as-is - DO NOT ALTER)
   ========================================================= */

/* LCP Speed Hack for Elementor Headings */
.elementor-widget-heading .elementor-heading-title {
    font-display: swap !important;
    text-rendering: optimizeSpeed !important;
}

/* LCP Text Fast Render Fix */
.elementor-element-b76f6a2 .elementor-heading-title {
    font-display: swap !important;
    content-visibility: visible !important;
    text-rendering: optimizeSpeed !important;
}

.elementor-element-b76f6a2 {
    content-visibility: auto;
    contain-intrinsic-size: 100px;
}

/* 1. Global Font Force to Roboto */
body,
.relivo-how-to-use,
.relivo-list-section,
.relivo-faq-section,
.zarvi-trust-badges-wrapper,
.relivo-mini-banner,
.custom-product-selector {
    font-family: 'Roboto', sans-serif !important;
    box-sizing: border-box;
}

/* 2. Trust Badges Section */
.zarvi-trust-badges-wrapper {
    background-color: #147A1F !important;
    padding: 30px 10px;
    border-top: 1px solid #eaf6f3;
    border-bottom: 1px solid #eaf6f3;
    width: 100%;
}
.zarvi-trust-badges-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
}
.zarvi-badge-item {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.zarvi-icon-box {
    background-color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 96, 71, 0.05);
    transition: transform 0.3s ease;
}
.zarvi-badge-item:hover .zarvi-icon-box {
    transform: scale(1.05);
}
.zarvi-icon-box svg {
    width: 25px;
    height: 25px;
    color: #006047;
}
.zarvi-badge-text {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding: 0 2px;
    line-height: 1.2;
    letter-spacing: -0.2px;
}
.highlight-yellow {
  color: #FBFF6F;
}

/* 3. Benefits List Section */
.relivo-list-section {
    background-color: #ffffff;
    padding: 2rem 1rem;
}
.relivo-list-container {
    max-width: 42rem;
    margin: 0 auto;
}
.relivo-list-header {
    background-color: #3b6e2a;
    border: 4px solid #c8e038;
    border-radius: 1.5rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}
.relivo-list-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0;
}
.relivo-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
}
.relivo-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.relivo-list-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.relivo-list-text {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.375;
    margin: 0;
}
.relivo-list-icon svg {
    width: 1.75rem !important;
    height: 1.75rem !important;
    max-width: 1.75rem !important;
    max-height: 1.75rem !important;
    color: #3b6e2a;
    display: block;
}

/* 4. How to Use Section */
.relivo-how-to-use {
    background-color: #FAF8D5 !important;
    padding: 2rem 1rem;
}
.relivo-container {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.relivo-title-box {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}
.relivo-heading {
    color: #078113 !important;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}
.relivo-subheading {
    color: #4b5563;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}
.relivo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 2rem;
}
.relivo-card {
    background-color: #078113 !important;
    color: #ffffff;
    padding: 1.25rem 0.75rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.relivo-icon-wrapper {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.relivo-icon-wrapper svg {
    width: 1.75rem;
    height: 1.75rem;
    stroke: #ffffff;
}
.relivo-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}
.relivo-card-desc {
    font-size: 0.8125rem;
    color: #f3f4f6;
    margin: 0;
    line-height: 1.4;
    opacity: 0.95;
}
.relivo-banner {
    width: 100%;
    max-width: 64rem;
}
.relivo-banner-inner {
    background-color: #078113 !important;
    color: #ffffff;
    padding: 1rem 0.75rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.relivo-banner-text {
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0;
}

/* 5. FAQ Accordion Section */
.relivo-faq-section {
    background-color: #FAF8D5 !important;
    padding: 2.5rem 1rem;
}
.relivo-faq-container {
    max-width: 48rem;
    margin: 0 auto;
}
.relivo-faq-title-area {
    text-align: center;
    margin-bottom: 2rem;
}
.relivo-faq-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    margin: 0;
}
.relivo-faq-title-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 66%;
    height: 0.375rem;
    background-color: #10b981;
    border-radius: 9999px;
}
.relivo-faq-sub-title {
    color: #4b5563;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}
.relivo-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.relivo-faq-item {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid rgba(229, 231, 235, 0.7);
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.relivo-faq-toggle {
    width: 100%;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}
.relivo-faq-toggle:hover {
    background-color: #f9fafb;
}
.relivo-faq-question {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    padding-right: 1rem;
    line-height: 1.375;
}
.relivo-faq-chevron-bg {
    flex-shrink: 0;
    background-color: #ecfdf5;
    padding: 0.375rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.relivo-chevron-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #059669;
    transition: transform 0.3s ease;
}
.relivo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.25rem;
    font-size: 0.875rem;
    color: #111827;
    line-height: 1.625;
    font-weight: 500;
}
.relivo-faq-item.active .relivo-faq-answer {
    max-height: 500px;
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background-color: #d3f5a9 !important;
}
.relivo-faq-item.active .relivo-chevron-icon {
    transform: rotate(180deg);
}

/* 6. Mini Banner Section */
.relivo-mini-banner {
    padding: 35px 20px; 
    border-radius: 12px;
    color: #ffffff;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}
.old-price {
    font-size: 26px; 
    color: #ffffff;
    margin: 0 0 15px 0;
    font-weight: 600;
}
.cut-mark {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    font-weight: 900;
    font-size: 30px;
    color: #ffffff;
    vertical-align: middle;
    z-index: 1;
}
.cut-mark::before, 
.cut-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e62227;
    border-radius: 2px;
    opacity: 0;
    z-index: -1;
}
.cut-mark::before {
    transform: translateY(-50%) rotate(20deg) scaleX(0);
    transform-origin: center;
    animation: crossDrawLine1 0.3s ease-out 0.3s forwards;
}
.cut-mark::after {
    transform: translateY(-50%) rotate(-20deg) scaleX(0);
    transform-origin: center;
    animation: crossDrawLine2 0.3s ease-out 0.5s forwards;
}
@keyframes crossDrawLine1 {
    to { opacity: 1; transform: translateY(-50%) rotate(20deg) scaleX(1.1); }
}
@keyframes crossDrawLine2 {
    to { opacity: 1; transform: translateY(-50%) rotate(-20deg) scaleX(1.1); }
}
.current-price {
    font-size: 46px; 
    color: #ffffff;
    font-weight: 800;
    margin: 0 0 25px 0;
}
.price-number {
    color: #e2f017;
    font-size: 50px;
}

/* Media Queries */
@media (min-width: 640px) {
    .relivo-list-section { padding: 3rem 1.5rem; }
    .relivo-list-header { border-radius: 2rem; padding: 1.5rem 1rem; margin-bottom: 2.5rem; }
    .relivo-list-title { font-size: 2.25rem; }
    .relivo-list-wrapper { gap: 1.5rem; padding: 0 1rem; }
    .relivo-list-item { gap: 1rem; }
    .relivo-list-icon svg { width: 2.25rem !important; height: 2.25rem !important; max-width: 2.25rem !important; max-height: 2.25rem !important; }
    .relivo-list-text { font-size: 1.875rem; }
}

@media (min-width: 768px) {
    .zarvi-trust-badges-wrapper { padding: 50px 20px; }
    .zarvi-icon-box { width: 80px; height: 80px; border-radius: 30px; margin-bottom: 15px; }
    .zarvi-icon-box svg { width: 40px; height: 40px; }
    .zarvi-badge-text { font-size: 14px; }
    .zarvi-trust-badges-container { gap: 20px; }
    .relivo-how-to-use { padding: 4rem 1rem; }
    .relivo-title-box { margin-bottom: 3rem; }
    .relivo-heading { font-size: 3.75rem; margin-bottom: 1rem; }
    .relivo-subheading { font-size: 1.5rem; }
    .relivo-grid { gap: 1.5rem; margin-bottom: 3.5rem; }
    .relivo-card { padding: 2rem; border-radius: 1.5rem; }
    .relivo-icon-wrapper { padding: 1rem; margin-bottom: 1.5rem; }
    .relivo-icon-wrapper svg { width: 3rem; height: 3rem; }
    .relivo-card-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .relivo-card-desc { font-size: 1.125rem; }
    .relivo-banner-inner { padding: 1.75rem; border-radius: 9999px; }
    .relivo-banner-text { font-size: 1.5rem; }
    .relivo-faq-section { padding: 4rem 1rem; }
    .relivo-faq-title-area { margin-bottom: 3rem; }
    .relivo-faq-main-title { font-size: 2.25rem; }
    .relivo-faq-sub-title { font-size: 1.125rem; }
    .relivo-faq-toggle { padding: 1.25rem 1.5rem; }
    .relivo-faq-question { font-size: 1.25rem; }
    .relivo-chevron-icon { width: 1.5rem; height: 1.5rem; }
    .relivo-faq-answer { font-size: 1.0625rem; }
}

@media (max-width: 768px) {
    .relivo-mini-banner { padding: 25px 15px; }
    .old-price { font-size: 20px; }
    .cut-mark { font-size: 30px; }
    .current-price { font-size: 32px; }
    .price-number { font-size: 36px; }
}

@media (max-width: 480px) {
    .zarvi-icon-box { width: 42px; height: 42px; border-radius: 12px; }
    .zarvi-icon-box svg { width: 20px; height: 20px; }
    .zarvi-badge-text { font-size: 9px; }
}

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root{
  --forest:#078113;      /* primary brand green */
  --forest-2:#064e3b;    /* deep green */
  --leaf:#147A1F;        /* trust-badge green */
  --leaf-light:#f1f9f2;  
  --cream:#fdf7d8;       /* brand package tile cream */
  --gold:#e2f017;        
  --gold-deep:#c8e038;    
  --orange-badge:#f05a24;
  --coral:#ff6a3d;
  --line:#dbe6dd;
  --border-orange:#f0e2a8;
  --shadow:0 12px 30px rgba(7,129,19,.14);
}

h1,h2,h3,h4{ color:var(--forest); }

/* =========================================================
   2. CUSTOM CHECKOUT PRODUCT SELECTOR (FIXED BORDER & HEIGHT)
   ========================================================= */
.custom-product-selector-wrapper {
    margin-bottom: 25px;
}
.custom-product-selector-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 15px;
}
.custom-product-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media(max-width: 640px){
    .custom-product-selector { grid-template-columns: 1fr; }
}

.rlv-package-tile {
    border: 1.5px solid #f07d38 !important;
    background: var(--cream);
    border-radius: 8px;
    padding: 18px 16px !important;
    min-height: 85px;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.rlv-package-tile.rlv-selected {
    border: 1.5px solid #f07d38 !important; /* অতিরিক্ত মোটা বর্ডার এবং শ্যাডো দূর করা হয়েছে */
    box-shadow: none !important;
}
.rlv-package-tile input[type=radio] {
    position: static !important;
    width: 18px;
    height: 18px;
    accent-color: var(--forest);
    flex: 0 0 auto;
    margin: 0;
}
.rlv-package-tile img, .rlv-package-tile .rlv-thumb {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    flex: 0 0 auto;
}
.rlv-package-tile-content {
    flex: 1;
}
.rlv-package-tile h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}
.rlv-package-tile .rlv-tile-desc {
    font-size: 13px;
    color: #555;
    margin: 0 0 4px;
    line-height: 1.3;
}
.rlv-package-tile .rlv-tile-price {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.rlv-package-tile .rlv-tile-price del {
    color: #888;
    font-weight: 400;
    margin-right: 4px;
}
.rlv-package-tile .rlv-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--orange-badge);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-bottom-left-radius: 6px;
    font-weight: 600;
}

/* =========================================================
   3. SAME-PAGE WOOCOMMERCE CHECKOUT (FIXED PADDING & LAYOUT)
   ========================================================= */
.rlv-checkout-wrap { max-width: 1100px; margin: 0 auto; }

.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "billing heading"
        "billing summary";
    gap: 20px 40px;
    align-items: start;
    background: #fff;
    padding: 10px 0;
}

@media(max-width: 768px){
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
        grid-template-areas: "billing" "heading" "summary";
        gap: 20px;
    }
}

.woocommerce-checkout #customer_details { grid-area: billing; }
.woocommerce-checkout #order_review_heading { 
    grid-area: heading; 
    align-self: end; 
    margin: 0 0 15px; 
    font-size: 20px; 
    font-weight: 700; 
    color: var(--forest);
}
.woocommerce-checkout #order_review { 
    grid-area: summary; 
    background: transparent; 
    padding: 0 !important; 
}

/* ইনপুট ফিল্ডের ১০০% উইডথ নিশ্চিতকরণ */
.woocommerce .col2-set,
.woocommerce-page .col2-set {
    width: 100% !important;
    float: none !important;
    display: block !important;
}

.woocommerce .col2-set .col-1, 
.woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2, 
.woocommerce-page .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

.woocommerce-billing-fields > h3 { 
    font-size: 20px; 
    font-weight: 700; 
    margin: 0 0 15px; 
    color: var(--forest); 
}

.woocommerce form.checkout input.input-text,
.woocommerce form.checkout select,
.woocommerce form.checkout textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1.5px solid var(--line) !important;
    border-radius: 6px !important;
    font-size: 14px;
    background: #fbfcfa;
    color: #333;
    box-sizing: border-box !important;
}

.woocommerce form.checkout label {
    display: block;
    font-size: 14px;
    color: #222;
    font-weight: 600;
    margin-bottom: 6px;
}

.woocommerce form.checkout label .required {
    color: #e53e3e;
}

.woocommerce-checkout #customer_details .form-row { 
    width: 100% !important; 
    float: none !important; 
    margin-bottom: 16px; 
    padding: 0 !important;
}

.woocommerce-form-coupon-toggle, .woocommerce-form-coupon { display: none !important; }
.woocommerce-additional-fields { display: none !important; }

/* অর্ডার সামারি টেবিল (লেখা বর্ডারের গা থেকে সরানোর প্যাডিং ফিক্স) */
.woocommerce-checkout-review-order-table {
    background: transparent;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table th, 
.woocommerce-checkout-review-order-table td {
    padding: 12px 8px !important; /* লেখাগুলোর জন্য অভ্যন্তরীণ সুন্দর প্যাডিং */
    border: none !important;
    border-bottom: 1px dashed #cbd5e1 !important;
    font-size: 14px;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table thead th {
    color: #475569;
    font-weight: 600;
    text-transform: none;
}

.woocommerce-checkout-review-order-table td.product-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-checkout-review-order-table .product-name img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #1e293b;
}

.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
    border-bottom: none !important;
    font-weight: 700;
    font-size: 16px;
    color: var(--forest);
    padding-top: 16px !important;
}

/* বাটন স্টাইল */
#place_order {
    width: 100%;
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 16px 20px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

#place_order:hover {
    background: #1a1a1a !important;
}

/* =========================================================
   4. ORDER BUMP (Molongui Order Bump)
   ========================================================= */
.molongui-bump-offer, .rlv-bump {
    border: 2px dashed var(--gold-deep) !important;
    background: #fffaf0 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 22px !important;
}

.molongui-bump-offer .bump-title, .rlv-bump strong {
    color: #8a4b00;
}

.rlv-bump-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
}

.rlv-bump-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--forest);
}

/* =========================================================
   5. THANK YOU PAGE
   ========================================================= */
.woocommerce-order { max-width: 560px; margin: 0 auto; padding: 20px; }
.woocommerce-order > * { text-align: center; }
.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details {
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px;
}

.rlv-thanks-card { max-width: 480px; margin: 20px auto; text-align: center; }
.rlv-thanks-check {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.rlv-thanks-card h2 { margin: 0 0 8px; font-size: 22px; }
.rlv-thanks-sub { color: #555; font-size: 14px; margin: 0 0 24px; }

.rlv-upsell-box {
    background: var(--leaf-light);
    border: 1px solid #cdeccf;
    border-radius: 14px;
    padding: 20px;
    text-align: left;
}
.rlv-upsell-offer { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.rlv-upsell-offer img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.rlv-upsell-offer strong { display: block; color: var(--forest); font-size: 15px; margin-bottom: 4px; }
.rlv-upsell-price { font-size: 14px; font-weight: 700; color: #333; }
.rlv-upsell-actions { display: grid; gap: 10px; }
.rlv-btn-yes {
    background: var(--forest);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.rlv-btn-yes:hover { background: var(--forest-2); }
.rlv-btn-no {
    background: transparent;
    color: #555;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.rlv-upsell-final {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--forest);
    margin: 0;
    padding: 10px 0;
}

