/* Native FunnelKit and Razorpay remain responsible for checkout processing. */
#tfc-root[hidden], #tfc-root [hidden] { display: none !important; }
body.tfc-active { margin: 0; background: #f4f4f6 !important; color: #111; }
body.tfc-active .wfacp-template-container { display: none !important; }
body.tfc-active > .smsalertModal { display: none !important; }

:root {
    --tfc-accent: #4b5e44;
    --tfc-brand-bg: #b19c7b;
    --tfc-font-heading: "Playfair Display", Georgia, serif;
    --tfc-font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#tfc-root {
    --tfc-style-ready: 1;
    font-family: var(--tfc-font-body);
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.5;
    background: #f4f4f6;
    min-height: 100vh;
}
#tfc-root, #tfc-root * { box-sizing: border-box; }
#tfc-root img { max-width: 100%; height: auto; }

/* Strict Typography Hierarchy: Playfair Display for headings, Montserrat for sub-headings & smaller text */
#tfc-root h1,
#tfc-root h2,
#tfc-root h3,
#tfc-root .tfc-serif-heading,
#tfc-root .tfc-summary-card-title,
#tfc-root .tfc-price-details-heading,
#tfc-root .tfc-pink-bar,
#tfc-root .tfc-step4-pink-bar {
    font-family: var(--tfc-font-heading);
}
#tfc-root h4,
#tfc-root p,
#tfc-root span,
#tfc-root small,
#tfc-root label,
#tfc-root button,
#tfc-root input,
#tfc-root select,
#tfc-root textarea,
#tfc-root a {
    font-family: var(--tfc-font-body);
}

#tfc-root button { cursor: pointer; }
#tfc-root button:disabled { cursor: default; opacity: .58; }
#tfc-root button:focus-visible, #tfc-root a:focus-visible, #tfc-root summary:focus-visible {
    outline: 2px solid var(--tfc-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   UNIVERSAL BRAND HEADER ON EVERY STEP (Matches image_d5c324.png)
   ========================================================================== */
#tfc-root .tfc-global-header {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 16px;
    background: #fff;
    border-bottom: 1px solid #ececec;
    position: sticky;
    top: 0;
    z-index: 60;
}
body.admin-bar #tfc-root .tfc-global-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #tfc-root .tfc-global-header { top: 46px; } }

#tfc-root .tfc-global-back {
    border: 0;
    background: transparent;
    padding: 4px 6px 4px 0;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#tfc-root .tfc-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #111;
    margin-right: auto;
}
#tfc-root .tfc-brand-text {
    font-family: var(--tfc-font-heading) !important;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #111;
}
#tfc-root .tfc-logo {
    display: block;
    height: 28px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
}
#tfc-root .tfc-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7b8492;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* ==========================================================================
   TOP PROGRESS STEPPER ON EVERY PAGE — BLACK INSTEAD OF GREEN
   ========================================================================== */
#tfc-root .tfc-progress {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-bottom: 1px solid #efefef;
    padding: 11px 24px 9px;
}
#tfc-root .tfc-progress ol {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}
#tfc-root .tfc-progress ol::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 1.5px;
    background: #d8d8d8;
    transform: translateY(-50%);
    z-index: 0;
}
#tfc-root .tfc-prog-item {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 6px;
}
#tfc-root .tfc-prog-item button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 2px 4px;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    opacity: 1;
}
#tfc-root .tfc-prog-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #bbb;
    background: #fff;
    color: transparent;
    transition: all .2s ease;
}
#tfc-root .tfc-prog-item.tfc-current .tfc-prog-dot,
#tfc-root .tfc-prog-item.tfc-complete .tfc-prog-dot {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}
#tfc-root .tfc-prog-item.tfc-current button,
#tfc-root .tfc-prog-item.tfc-complete button {
    color: #111111;
    font-weight: 600;
}

/* ==========================================================================
   MAIN CONTAINER & MESSAGES
   ========================================================================== */
#tfc-root .tfc-main {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    min-height: calc(100vh - 96px);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.05);
    position: relative;
}
#tfc-root[data-step="2"] .tfc-main {
    background: #fafafa;
}
#tfc-root .tfc-step-panel {
    background: #fff;
    padding: 0;
}
#tfc-root .tfc-message {
    font-size: 12px;
    line-height: 1.45;
    background: #eef3ec;
    color: var(--tfc-accent);
    padding: 10px 16px;
    border-bottom: 1px solid #d5e0d2;
    margin: 0;
}
#tfc-root .tfc-message.tfc-error {
    background: #fff2f0;
    color: #a6261c;
    border-color: #f3c6c2;
}

/* ==========================================================================
   STEP 1: CART PAGE
   ========================================================================== */
#tfc-root #tfc-cart {
    padding: 0 0 24px;
}
#tfc-root .tfc-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #efefef;
}
#tfc-root .tfc-cart-header h1 {
    font-family: var(--tfc-font-heading);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #111;
    letter-spacing: 0.2px;
}
#tfc-root .tfc-cart-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #444;
    text-decoration: none;
    border-radius: 50%;
}
#tfc-root .tfc-items-heading {
    padding: 14px 20px 4px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}
#tfc-root .tfc-cart-items {
    padding: 0 20px;
}
#tfc-root .tfc-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f1f1;
}
#tfc-root .tfc-cart-item:last-child {
    border-bottom: 0;
}
#tfc-root .tfc-product-image {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    background: #f7f7f7;
    overflow: hidden;
}
#tfc-root .tfc-product-image img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
}
#tfc-root .tfc-product-info {
    flex: 1;
    min-width: 0;
}
#tfc-root .tfc-product-info h3 {
    font-family: var(--tfc-font-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #1c1c1c;
    margin: 0 0 4px;
}
#tfc-root .tfc-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
#tfc-root .tfc-price-current {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
#tfc-root .tfc-price-mrp {
    font-size: 12px;
    color: #999;
}
#tfc-root .tfc-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
#tfc-root .tfc-qty-box {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 3px;
    height: 32px;
    min-width: 96px;
    justify-content: space-between;
    padding: 0 4px;
}
#tfc-root .tfc-qty-btn {
    border: 0;
    background: transparent;
    width: 28px;
    height: 28px;
    font-size: 15px;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#tfc-root .tfc-qty-val {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    padding: 0 6px;
}
#tfc-root .tfc-remove-item {
    border: 0;
    background: transparent;
    color: #666;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#tfc-root .tfc-remove-item:hover {
    color: #c9302c;
}

/* Note & Coupon Icon Bar */
#tfc-root .tfc-cart-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    margin: 8px 0 16px;
}
#tfc-root .tfc-tool-btn {
    border: 0;
    background: #fff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tfc-accent);
}
#tfc-root .tfc-tool-btn:first-child {
    border-right: 1px solid #efefef;
}
#tfc-root .tfc-tool-btn[aria-expanded="true"] {
    background: #f5f7f4;
    color: var(--tfc-accent);
}
#tfc-root .tfc-tool-drawer {
    margin: -8px 20px 14px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid var(--tfc-accent);
    border-radius: 6px;
}
#tfc-root .tfc-tool-drawer label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--tfc-accent);
    margin-bottom: 6px;
    text-transform: uppercase;
}
#tfc-root .tfc-drawer-row {
    display: flex;
    gap: 8px;
}
#tfc-root .tfc-drawer-row input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}
#tfc-root .tfc-drawer-row button {
    height: 36px;
    padding: 0 14px;
    background: var(--tfc-accent);
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
#tfc-root .tfc-applied-coupons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
#tfc-root .tfc-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eef3ec;
    color: var(--tfc-accent);
    border: 1px solid var(--tfc-accent);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
#tfc-root .tfc-coupon-tag button {
    border: 0;
    background: none;
    color: inherit;
    font-size: 13px;
    padding: 0 2px;
}

/* Order Summary & Estimated Total Cards in Step 1 */
#tfc-root .tfc-order-summary-card {
    margin: 0 20px 14px;
    padding: 16px;
    border: 1px solid #e5e8e4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
#tfc-root .tfc-summary-card-title {
    font-family: var(--tfc-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}
#tfc-root .tfc-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #666;
    margin-bottom: 8px;
}
#tfc-root .tfc-summary-line:last-child {
    margin-bottom: 0;
}
#tfc-root .tfc-free-badge,
#tfc-root .tfc-discount-line span:last-child {
    color: var(--tfc-accent);
    font-weight: 700;
}
#tfc-root .tfc-estimated-total-card {
    margin: 0 20px 20px;
    padding: 14px 16px;
    border: 1px solid #e5e8e4;
    border-radius: 10px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
#tfc-root .tfc-est-label {
    font-family: var(--tfc-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: #111;
}
#tfc-root .tfc-est-value {
    text-align: right;
}
#tfc-root .tfc-est-value strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
#tfc-root .tfc-est-value small {
    display: block;
    font-size: 10px;
    color: #888;
}

/* PROCEED TO CHECKOUT Button with UPI Pill */
#tfc-root .tfc-cart-cta-wrap {
    padding: 0 20px;
}
#tfc-root .tfc-proceed-btn {
    width: 100%;
    min-height: 50px;
    background: #0b0b0b;
    color: #fff;
    border: 0;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
#tfc-root .tfc-upi-pill {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    gap: 4px;
    height: 24px;
}
#tfc-root .tfc-upi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    border-radius: 50%;
}
#tfc-root .tfc-upi-paytm {
    color: #00baf2;
    font-size: 8px;
    letter-spacing: -0.3px;
    padding: 0 2px;
}
#tfc-root .tfc-upi-phonepe {
    width: 16px;
    height: 16px;
    background: #5f259f;
    color: #fff;
    font-size: 9px;
}
#tfc-root .tfc-upi-gpay {
    width: 16px;
    height: 16px;
    background: conic-gradient(#4285f4 0 90deg, #34a853 90deg 180deg, #fbbc05 180deg 270deg, #ea4335 270deg 360deg);
    color: #fff;
    font-size: 9px;
    text-shadow: 0 0 2px rgba(0,0,0,0.4);
}

/* ==========================================================================
   STEP 2a: MOBILE LOGIN PAGE (Powered by Razorpay)
   ========================================================================== */
#tfc-root #tfc-verify {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 96px);
    background: #fafafa;
}
#tfc-root .tfc-back-chevron {
    border: 0;
    background: transparent;
    padding: 4px 6px 4px 0;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#tfc-root .tfc-login-body {
    flex: 1;
    padding: 14px 16px 24px;
    display: flex;
    flex-direction: column;
}

/* Collapsible Order Summary Accordion */
#tfc-root .tfc-summary-accordion {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
#tfc-root .tfc-summary-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}
#tfc-root .tfc-summary-accordion summary::-webkit-details-marker {
    display: none;
}
#tfc-root .tfc-sum-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
#tfc-root .tfc-sum-cart-icon {
    color: var(--tfc-accent);
    flex-shrink: 0;
}
#tfc-root .tfc-sum-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#tfc-root .tfc-sum-title {
    font-family: var(--tfc-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
}
#tfc-root .tfc-sum-saved {
    display: inline-block;
    background: #eef3ec;
    color: var(--tfc-accent);
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 99px;
}
#tfc-root .tfc-sum-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
#tfc-root .tfc-sum-meta {
    text-align: right;
}
#tfc-root .tfc-sum-count {
    display: block;
    font-size: 11px;
    color: #777;
}
#tfc-root .tfc-sum-prices {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
}
#tfc-root .tfc-sum-mrp {
    font-size: 11px;
    color: #999;
}
#tfc-root .tfc-sum-total {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
#tfc-root .tfc-sum-chevron {
    color: var(--tfc-accent);
    transition: transform .2s ease;
}
#tfc-root .tfc-summary-accordion[open] .tfc-sum-chevron {
    transform: rotate(180deg);
}
#tfc-root .tfc-sum-content {
    padding: 0 16px 14px;
    border-top: 1px solid #f0f0f0;
}
#tfc-root .tfc-mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
#tfc-root .tfc-mini-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}
#tfc-root .tfc-mini-meta {
    flex: 1;
    min-width: 0;
}
#tfc-root .tfc-mini-meta h4 {
    font-family: var(--tfc-font-heading);
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: #222;
}
#tfc-root .tfc-mini-meta span {
    font-size: 11px;
    color: #777;
}
#tfc-root .tfc-mini-price {
    font-size: 12.5px;
    font-weight: 600;
    color: #111;
}
#tfc-root .tfc-mini-breakdown {
    padding-top: 10px;
    font-size: 12px;
    color: #555;
}
#tfc-root .tfc-mini-breakdown > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
#tfc-root .tfc-mini-total {
    font-weight: 700;
    color: #111;
    padding-top: 6px;
    border-top: 1px dashed #e0e0e0;
}

/* Login to continue Card (Mobile Field ONLY) */
#tfc-root .tfc-login-card {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
#tfc-root .tfc-login-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
#tfc-root .tfc-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#tfc-root #tfc-verify-title {
    font-family: var(--tfc-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
}
#tfc-root .tfc-floating-phone {
    position: relative;
    padding-top: 6px;
}
#tfc-root .tfc-floating-phone label {
    position: absolute;
    top: -3px;
    left: 14px;
    background: #fff;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--tfc-accent);
    z-index: 2;
}
#tfc-root .tfc-phone-field-box {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1.4px solid var(--tfc-accent);
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
}
#tfc-root .tfc-phone-field-box:focus-within {
    border-color: var(--tfc-accent);
    box-shadow: 0 0 0 2px rgba(75, 94, 68, 0.14);
}
#tfc-root .tfc-country-prefix {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
#tfc-root .tfc-prefix-divider {
    margin: 0 8px;
    color: #888;
    font-weight: 400;
}
#tfc-root #tfc-phone {
    flex: 1;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    height: 100%;
    padding: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    box-shadow: none !important;
}

/* Powered By Razorpay Trust Block */
#tfc-root .tfc-trust-block {
    margin: auto 0;
    padding: 36px 0 24px;
    text-align: center;
}
#tfc-root .tfc-powered-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}
#tfc-root .tfc-curved-text {
    display: block;
    margin-bottom: -10px;
}
#tfc-root .tfc-seal-shield {
    margin-bottom: 4px;
}
#tfc-root .tfc-rzp-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
#tfc-root .tfc-rzp-wordmark {
    font-size: 16px;
    font-weight: 800;
    color: #072654;
    letter-spacing: -0.3px;
}
#tfc-root .tfc-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}
#tfc-root .tfc-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    font-size: 9.5px;
    line-height: 1.2;
    color: #6b7485;
}
#tfc-root .tfc-trust-item strong {
    color: #4f5868;
    font-weight: 700;
}

/* Sticky Login Bottom Footer */
#tfc-root .tfc-login-footer {
    background: #fff;
    border-top: 1px solid #ececec;
    padding: 12px 16px 14px;
    margin-top: auto;
}
#tfc-root .tfc-optin-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #333;
    margin-bottom: 12px;
    cursor: pointer;
}
#tfc-root .tfc-optin-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--tfc-accent);
    margin: 0;
}
#tfc-root .tfc-continue-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: #9e9e9e;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease;
}
#tfc-root .tfc-continue-btn.tfc-continue-ready,
#tfc-root .tfc-continue-btn.tfc-continue-active {
    background: var(--tfc-accent);
}
#tfc-root .tfc-legal-line {
    margin: 10px 0 0;
    text-align: center;
    font-size: 10.5px;
    color: #666;
}
#tfc-root .tfc-legal-line a {
    color: var(--tfc-accent);
    font-weight: 600;
    text-decoration: underline;
}

/* ==========================================================================
   STEP 2b: OTP BOTTOM SHEET OVERLAY
   ========================================================================== */
#tfc-root .tfc-otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}
#tfc-root .tfc-otp-sheet-wrap {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#tfc-root .tfc-otp-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #e9ecef;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#tfc-root .tfc-otp-sheet {
    width: 100%;
    background: #fff;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.16);
}
#tfc-root .tfc-otp-banner {
    background: linear-gradient(180deg, #fdf3d7 0%, #fef9ec 68%, #ffffff 100%);
    padding: 22px 20px 14px;
    text-align: center;
}
#tfc-root .tfc-otp-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}
#tfc-root .tfc-otp-stars {
    display: inline-flex;
    gap: 5px;
    color: var(--tfc-accent);
    font-size: 9px;
    margin: 4px 0 6px;
}
#tfc-root .tfc-otp-bars {
    width: 84px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#tfc-root .tfc-bar-green {
    height: 4px;
    width: 100%;
    background: var(--tfc-accent);
    border-radius: 4px;
}
#tfc-root .tfc-bar-row {
    display: flex;
    gap: 6px;
}
#tfc-root .tfc-bar-gray {
    height: 4px;
    flex: 1;
    background: #d3d7de;
    border-radius: 4px;
}
#tfc-root .tfc-bar-gray.short {
    flex: 0.6;
}
#tfc-root .tfc-bar-green-dot {
    height: 4px;
    width: 75%;
    background: #8ea187;
    border-radius: 4px;
}
#tfc-root .tfc-otp-banner h3 {
    font-family: var(--tfc-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 4px;
}
#tfc-root .tfc-otp-safe {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 11.5px;
    color: #7d8796;
}
#tfc-root .tfc-otp-content {
    padding: 12px 20px 22px;
    text-align: center;
}
#tfc-root .tfc-otp-content h4 {
    font-family: var(--tfc-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px;
}
#tfc-root .tfc-otp-sent-line {
    font-size: 12px;
    color: #4b5563;
    margin: 0 0 18px;
}
#tfc-root .tfc-otp-phone-display {
    text-decoration: underline;
    color: #1f2937;
    font-weight: 500;
}
#tfc-root .tfc-otp-edit-btn {
    border: 0;
    background: none;
    color: var(--tfc-accent);
    font-weight: 700;
    font-size: 12px;
    padding: 0 4px;
}
#tfc-root .tfc-otp-error {
    background: #fff2f0;
    color: #a6261c;
    border: 1px solid #f3c6c2;
    font-size: 11.5px;
    padding: 8px 10px;
    border-radius: 6px;
    margin: 0 0 12px;
}
#tfc-root .tfc-code-grid {
    display: grid;
    grid-template-columns: repeat(var(--tfc-digits, 4), minmax(0, 48px));
    justify-content: center;
    gap: 12px;
    margin: 0 auto 16px;
}
#tfc-root .tfc-code-digit {
    width: 48px;
    height: 48px;
    border: 1.4px solid #b5bac2;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    background: #fff;
}
#tfc-root .tfc-code-digit:focus {
    border-color: var(--tfc-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(75, 94, 68, 0.16);
}
#tfc-root .tfc-otp-timer-wrap {
    margin-bottom: 14px;
    font-size: 11.5px;
    color: #8892a0;
}
#tfc-root .tfc-resend-btn {
    border: 0;
    background: none;
    color: var(--tfc-accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
}
#tfc-root .tfc-verify-submit-btn {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
#tfc-root .tfc-otp-powered {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10.5px;
    color: #8c96a6;
}
#tfc-root .tfc-otp-powered strong {
    color: #072654;
    font-weight: 800;
}

/* ==========================================================================
   STEP 3 & 4: ADDRESS & PAYMENT SCREENS (Brand #b19c7b bars & Olive #4b5e44 accents)
   ========================================================================== */
#tfc-root #tfc-live-panel {
    padding-bottom: 110px;
}
#tfc-root .tfc-step3-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #fff;
}
#tfc-root .tfc-serif-heading {
    font-family: var(--tfc-font-heading);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #111;
}

/* Brand Color (#b19c7b) Section Headers on Page 3 (Shipping Address, Payments, Estimated Delivery Time) */
#tfc-root .tfc-pink-bar {
    background: var(--tfc-brand-bg);
    color: #ffffff;
    font-family: var(--tfc-font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 16px;
}


#tfc-root .tfc-step3-email-wrap {
    padding: 14px 16px 4px;
}
#tfc-root .tfc-floating-email {
    position: relative;
    padding-top: 6px;
}
#tfc-root .tfc-floating-email label {
    position: absolute;
    top: -3px;
    left: 14px;
    background: #fff;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--tfc-accent);
    z-index: 2;
}
#tfc-root #tfc-email {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.2px solid var(--tfc-accent);
    border-radius: 8px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 500;
    color: #111;
    box-shadow: none;
}
#tfc-root #tfc-email:focus {
    outline: none;
    border-color: var(--tfc-accent);
    box-shadow: 0 0 0 2px rgba(75, 94, 68, 0.14);
}
#tfc-root #tfc-email[aria-invalid="true"] {
    border-color: #a6261c;
    background: #fffafa;
}

#tfc-root #tfc-saved-address {
    padding: 14px 16px 8px;
}
#tfc-root .tfc-address-card {
    padding: 14px 16px;
    background: #fff;
    border: 1.2px solid var(--tfc-accent);
    border-radius: 10px;
    margin-bottom: 12px;
}
#tfc-root .tfc-address-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
#tfc-root .tfc-address-card-top strong {
    font-family: var(--tfc-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: #111;
}
#tfc-root .tfc-change-btn {
    border: 0;
    background: none;
    color: var(--tfc-accent);
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}
#tfc-root .tfc-address-card p {
    font-size: 12px;
    color: #555;
    margin: 0;
    white-space: pre-line;
}
#tfc-root .tfc-billing-same-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}
#tfc-root .tfc-billing-same-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tfc-accent);
}

/* Payments Radio Options on Step 3 */
#tfc-root .tfc-payment-options {
    padding: 6px 16px;
}
#tfc-root .tfc-pay-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
}
#tfc-root .tfc-pay-option:last-child {
    border-bottom: 0;
}
#tfc-root .tfc-pay-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
#tfc-root .tfc-pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tfc-accent);
}
#tfc-root .tfc-pay-label {
    font-size: 13px;
    font-weight: 500;
    color: #2b2b2b;
}
#tfc-root .tfc-pay-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tfc-accent);
    margin: 0;
}

/* Estimated Delivery Time & Price Details on Step 3 */
#tfc-root .tfc-eta-list {
    padding: 12px 16px;
}
#tfc-root .tfc-eta-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
}
#tfc-root .tfc-eta-item:last-child {
    border-bottom: 0;
}
#tfc-root .tfc-eta-thumb {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
}
#tfc-root .tfc-eta-thumb img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    display: block;
}
#tfc-root .tfc-eta-info {
    flex: 1;
    min-width: 0;
}
#tfc-root .tfc-eta-info h4 {
    font-family: var(--tfc-font-heading);
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
}
#tfc-root .tfc-eta-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 3px;
}
#tfc-root .tfc-eta-price-row strong {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}
#tfc-root .tfc-eta-price-row del {
    font-size: 11px;
    color: #999;
}
#tfc-root .tfc-eta-qty {
    font-size: 11.5px;
    color: #666;
    margin-bottom: 4px;
}
#tfc-root .tfc-eta-delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #444;
}
#tfc-root .tfc-eta-delivery em {
    font-style: normal;
    color: var(--tfc-accent);
    font-weight: 600;
}

#tfc-root .tfc-price-details {
    padding: 14px 16px 20px;
    border-top: 1px solid #efefef;
}
#tfc-root .tfc-price-details-heading {
    font-family: var(--tfc-font-heading);
    font-size: 13.5px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
#tfc-root .tfc-pd-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #444;
    margin-bottom: 8px;
}
#tfc-root .tfc-pd-green span:last-child {
    color: var(--tfc-accent);
    font-weight: 600;
}
#tfc-root .tfc-pd-total {
    border-top: 1px dashed #ddd;
    padding-top: 10px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

/* Sticky Bottom Bar on Step 3 (Total + View Details + Olive-Green Pay Now Button) */
#tfc-root .tfc-sticky-paybar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #f5f6f8;
    border-top: 1px solid #e2e4e8;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}
#tfc-root .tfc-paybar-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
#tfc-root .tfc-paybar-total {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
#tfc-root .tfc-paybar-mrp {
    font-size: 11.5px;
    color: #888;
}
#tfc-root .tfc-view-details-link {
    display: block;
    font-size: 11px;
    color: var(--tfc-accent);
    text-decoration: underline;
    font-weight: 600;
}
#tfc-root .tfc-paynow-btn {
    min-width: 150px;
    height: 44px;
    background: var(--tfc-accent);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 0 24px;
}
#tfc-root .tfc-paynow-btn:hover {
    filter: brightness(0.93);
}

/* Step 4 Header (Payment Methods - Brand #b19c7b bar) */
#tfc-root .tfc-step4-pink-bar {
    background: var(--tfc-brand-bg);
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--tfc-font-heading);
    font-size: 15px;
    font-weight: 600;
}
#tfc-root .tfc-step4-back {
    border: 0;
    background: transparent;
    color: #ffffff;
    padding: 0;
    display: inline-flex;
    align-items: center;
}
#tfc-root .tfc-step4-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #efefef;
    font-size: 15px;
}
#tfc-root .tfc-step4-brand-row strong:first-child {
    font-family: var(--tfc-font-heading);
}

/* ==========================================================================
   NATIVE FUNNELKIT FORM SLOT & STEP VISIBILITY
   ========================================================================== */
#tfc-root #tfc-form-slot, #tfc-root .elementor-widget-wfacp_form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 16px 4px;
}
#tfc-root #wfacp-e-form, #tfc-root #wfacp-sec-wrapper, #tfc-root .wfacp-form, #tfc-root .wfacp_main_form, #tfc-root .wfacp_page {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
#tfc-root .elementor-widget-container {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
#tfc-root .wfacp_three_step.bredcrumb, #tfc-root .wfacp_steps_wrap, #tfc-root .wfacp_collapsible_order_summary_wrap,
#tfc-root .wfacp_next_page_button, #tfc-root .wfacp-prev-step, #tfc-root .wfacp_mini_cart_start_h,
#tfc-root .tfc-mirrored-field, #tfc-root .tfc-empty-contact,
#tfc-root .wfacp_back_page_button, #tfc-root .place_order_back_btn, #tfc-root .wfacp_preview_content_box,
#tfc-root .wfacp_woocommerce_form_coupon, #tfc-root .wfacp-coupon-section, #tfc-root .wfacp_Below_mini_cart_items,
#tfc-root .btm_btn_sec, #tfc-root .wfacp_return_to_cart, #tfc-root .woocommerce-terms-and-conditions-wrapper {
    display: none !important;
}
#tfc-root .wfacp_page { display: none !important; }
#tfc-root[data-step="3"] .tfc-address-page, #tfc-root[data-step="4"] .tfc-payment-page { display: block !important; }
#tfc-root[data-step="4"] #wfacp_checkout_form .tfc-payment-page .wfacp_payment {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
}
#tfc-root[data-step="4"] #tfc-address-block,
#tfc-root[data-step="4"] #tfc-step3-payments,
#tfc-root[data-step="4"] #tfc-step3-summary,
#tfc-root[data-step="4"] #tfc-address-actions,
#tfc-root[data-step="4"] #tfc-step3-header {
    display: none !important;
}
#tfc-root.tfc-has-address:not(.tfc-editing-address)[data-step="3"] #tfc-form-slot {
    display: none !important;
}
#tfc-root .wfacp-section { padding: 0 !important; border: 0 !important; margin: 0 0 12px !important; }
#tfc-root .wfacp_section_heading { display: none !important; }
#tfc-root input.wfacp-form-control:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
#tfc-root select.wfacp-form-control,
#tfc-root .select2-selection--single {
    min-height: 44px;
    border: 1px solid #d5d8de;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-family: var(--tfc-font-body) !important;
    font-size: 13.5px !important;
}
#tfc-root input.wfacp-form-control:focus,
#tfc-root select.wfacp-form-control:focus {
    border-color: var(--tfc-accent) !important;
}
#tfc-root #place_order {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    background: var(--tfc-accent) !important;
    color: white !important;
    border: none;
    border-radius: 6px !important;
    font: 600 14px/1.5 var(--tfc-font-body) !important;
    text-align: center;
    box-shadow: none;
}
#tfc-root #payment { background: none !important; }
#tfc-root #payment ul.payment_methods { padding: 0 !important; border: 0; list-style: none; }
#tfc-root #payment .wc_payment_method { padding: 14px; border: 1px solid var(--tfc-accent); border-radius: 8px; margin: 0 0 12px; }
#tfc-root #payment .payment_box { font-size: 12px; background: #fafafa; padding: 10px; border-radius: 6px; margin-top: 8px; }
#tfc-root #payment .place-order { padding: 0 !important; }
#tfc-root input[type="checkbox"],
#tfc-root input[type="radio"] {
    accent-color: var(--tfc-accent);
}

@media (max-width: 360px) {
    #tfc-root .tfc-trust-badges { gap: 12px; }
    #tfc-root .tfc-paynow-btn { min-width: 125px; padding: 0 16px; }
}
