
/* =========================================
   SMARTNEST RTL / LTR SUPPORT
========================================= */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="ltr"] {
    direction: ltr;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .sn-header-inner,
html[dir="rtl"] .sn-header-actions,
html[dir="rtl"] .sn-navigation {
    direction: rtl;
}

html[dir="rtl"] .sn-logo {
    direction: rtl;
}

html[dir="rtl"] .sn-logo-text {
    text-align: right;
}

html[dir="rtl"] .sn-nav-link {
    direction: rtl;
}

html[dir="rtl"] .sn-mobile-nav {
    direction: rtl;
}

html[dir="rtl"] .sn-mobile-link {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .sn-mobile-link.active {
    box-shadow: inset -3px 0 0 var(--sn-accent);
}

html[dir="rtl"] .sn-link-arrow,
html[dir="rtl"] .sn-login-arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .sn-mobile-menu-note {
    direction: rtl;
}

html[dir="rtl"] .sn-header-demo-space {
    text-align: right;
}

/* Keep English brand and control labels readable */
.sn-logo-text strong,
.sn-logo-text small,
.sn-direction-toggle span {
    unicode-bidi: isolate;
}

/* Responsive RTL */

@media (max-width: 1024px) {
    html[dir="rtl"] .sn-mobile-menu {
        text-align: right;
    }

    html[dir="rtl"] .sn-mobile-link {
        padding-inline: 16px;
    }

    html[dir="rtl"] .sn-mobile-link.active {
        box-shadow: inset -3px 0 0 var(--sn-accent);
    }
}



/* =========================================
   SMARTNEST FOOTER RTL
========================================= */

html[dir="rtl"] .sn-footer {
    text-align: right;
}

html[dir="rtl"] .sn-footer-cta {
    direction: rtl;
}

html[dir="rtl"] .sn-footer-main {
    direction: rtl;
}

html[dir="rtl"] .sn-footer-brand,
html[dir="rtl"] .sn-footer-column {
    text-align: right;
}

html[dir="rtl"] .sn-footer-socials,
html[dir="rtl"] .sn-footer-newsletter,
html[dir="rtl"] .sn-footer-newsletter-copy,
html[dir="rtl"] .sn-footer-bottom {
    direction: rtl;
}

html[dir="rtl"] .sn-footer-contact-item {
    direction: rtl;
}

html[dir="rtl"] .sn-newsletter-form {
    direction: rtl;
}

html[dir="rtl"] .sn-newsletter-input-wrap {
    direction: rtl;
}

html[dir="rtl"] .sn-newsletter-input-wrap input {
    text-align: right;
}

html[dir="rtl"] .sn-footer-cta-button i,
html[dir="rtl"] .sn-newsletter-button i,
html[dir="rtl"] .sn-back-to-top i {
    transform: scaleX(-1);
}

html[dir="rtl"] .sn-footer-legal {
    direction: rtl;
}

@media (max-width: 1024px) {
    html[dir="rtl"] .sn-footer-newsletter {
        align-items: stretch;
    }
}

@media (max-width: 767px) {
    html[dir="rtl"] .sn-footer-cta {
        align-items: stretch;
    }

    html[dir="rtl"] .sn-footer-bottom {
        align-items: stretch;
    }

    html[dir="rtl"] .sn-footer-legal {
        justify-content: flex-start;
    }
}


/* HERO RTL SUPPORT */

html[dir="rtl"] .sn-hero-content {
    text-align: right;
}

html[dir="rtl"] .sn-hero-actions,
html[dir="rtl"] .sn-hero-features {
    flex-direction: row;
}

html[dir="rtl"] .sn-hero-feature,
html[dir="rtl"] .sn-smart-widget {
    flex-direction: row;
}

html[dir="rtl"] .sn-hero-widgets {
    direction: ltr;
}

html[dir="rtl"] .sn-hero-controls {
    right: auto;
    left: var(--sn-page-padding, 5.2%);
}

html[dir="rtl"] .sn-stat-item + .sn-stat-item::before {
    left: auto;
    right: 0;
}

@media (max-width: 767px) {
    html[dir="rtl"] .sn-hero-content,
    html[dir="rtl"] .sn-stat-item {
        text-align: center;
    }

    html[dir="rtl"] .sn-hero-actions {
        flex-direction: column;
    }

    html[dir="rtl"] .sn-hero-features {
        text-align: right;
    }
}



html[data-theme="dark"] .sn-gallery-section {
    --gallery-bg: #111510;
    --gallery-panel: #191e18;
    --gallery-text: #f0f3ed;
    --gallery-muted: #a1a99b;
    --gallery-border: #30372d;

    background: #111510;
    color: #f0f3ed;
}

html[data-theme="dark"] .sn-gallery-heading h2 span {
    color: #a8e64b;
}

html[data-theme="dark"] .sn-gallery-eyebrow {
    color: #a8e64b;
}

html[data-theme="dark"] .sn-gallery-filter {
    border-color: #30372d;
    color: #f0f3ed;
}

html[data-theme="dark"] .sn-gallery-filter.is-active {
    border-color: #a8e64b;
    background: #a8e64b;
    color: #192019;
}

html[data-theme="dark"] .sn-gallery-filter:hover {
    border-color: #a8e64b;
}

html[data-theme="dark"] .sn-gallery-caption i {
    color: #a8e64b;
}


/* =================================
   SMARTNEST CONTACT — RTL
================================= */

html[dir="rtl"] .sn-solutions-contact {
    direction: rtl;
}

html[dir="rtl"] .sn-solutions-contact-content {
    text-align: right;
}

html[dir="rtl"] .sn-solutions-contact-actions {
    flex-direction: row;
}

html[dir="rtl"] .sn-solutions-contact-btn i {
    transform: scaleX(-1);
}

html[dir="rtl"] .sn-solutions-contact-btn:hover i {
    transform: scaleX(-1) translateX(4px);
}

html[dir="rtl"] .sn-contact-icon-light {
    left: auto;
    right: 20%;
}

html[dir="rtl"] .sn-contact-icon-shield {
    right: auto;
    left: 7%;
}

html[dir="rtl"] .sn-contact-icon-temperature {
    right: auto;
    left: 15%;
}

html[dir="rtl"] .sn-contact-icon-wifi {
    left: auto;
    right: 9%;
}

@media (max-width: 700px) {
    html[dir="rtl"] .sn-solutions-contact-content {
        text-align: right;
    }

    html[dir="rtl"] .sn-solutions-contact-actions {
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    html[dir="rtl"] .sn-solutions-contact-actions {
        align-items: flex-start;
    }
}


/* ========================================
   SMARTNEST PRICING — RTL
======================================== */

html[dir="rtl"] .sn-pricing-section {
    direction: rtl;
}

html[dir="rtl"] .sn-pricing-intro {
    text-align: center;
}

html[dir="rtl"] .sn-pricing-switch {
    direction: rtl;
}

html[dir="rtl"] .sn-price-card {
    text-align: right;
}

html[dir="rtl"] .sn-price-card-top {
    direction: rtl;
}

html[dir="rtl"] .sn-price-amount {
    direction: rtl;
}

html[dir="rtl"] .sn-price-unit {
    margin-left: 0;
    margin-right: 5px;
}

html[dir="rtl"] .sn-price-button {
    direction: rtl;
}

html[dir="rtl"] .sn-price-button i {
    transform: scaleX(-1);
}

html[dir="rtl"] .sn-price-button:hover i {
    transform: scaleX(-1) translateX(4px);
}

html[dir="rtl"] .sn-price-features li {
    text-align: right;
}

html[dir="rtl"] .sn-pricing-disclaimer {
    direction: rtl;
}

@media (max-width: 560px) {
    html[dir="rtl"] .sn-pricing-intro {
        text-align: right;
    }

    html[dir="rtl"] .sn-pricing-switch {
        align-items: flex-start;
    }
}



/* =====================================
   SMARTNEST OFFERS — RTL
===================================== */

html[dir="rtl"] .sn-offers-section {
    direction: rtl;
}

html[dir="rtl"] .sn-offers-heading {
    text-align: center;
}

html[dir="rtl"] .sn-offer-featured {
    direction: rtl;
}

html[dir="rtl"] .sn-offer-featured-content {
    text-align: right;
}

html[dir="rtl"] .sn-offer-featured-points {
    direction: rtl;
}

html[dir="rtl"] .sn-offer-featured-btn {
    direction: rtl;
}

html[dir="rtl"] .sn-offer-featured-btn i,
html[dir="rtl"] .sn-offer-card-link i {
    transform: scaleX(-1);
}

html[dir="rtl"] .sn-offer-featured-btn:hover i,
html[dir="rtl"] .sn-offer-card-link:hover i {
    transform: scaleX(-1) translateX(4px);
}

html[dir="rtl"] .sn-offer-mini-light {
    left: auto;
    right: 0;
}

html[dir="rtl"] .sn-offer-mini-control {
    right: auto;
    left: 0;
}

html[dir="rtl"] .sn-offer-discount-mark {
    right: auto;
    left: 7%;
}

html[dir="rtl"] .sn-offer-card {
    text-align: right;
}

html[dir="rtl"] .sn-offers-disclaimer {
    text-align: center;
}

@media (max-width: 650px) {
    html[dir="rtl"] .sn-offers-heading {
        text-align: right;
    }

    html[dir="rtl"] .sn-offer-featured-content {
        text-align: right;
    }

    html[dir="rtl"] .sn-offers-disclaimer {
        text-align: right;
    }
}



/* =====================================
   PRICING FACTORS — RTL
===================================== */

html[dir="rtl"] .sn-price-factors {
    direction: rtl;
}

html[dir="rtl"] .sn-price-factors-heading {
    text-align: center;
}

html[dir="rtl"] .sn-price-factor-item {
    direction: rtl;
}

html[dir="rtl"] .sn-price-factor-content {
    text-align: right;
}

html[dir="rtl"] .sn-price-factor-number {
    text-align: left;
}

html[dir="rtl"] .sn-price-factor-panel {
    align-items: flex-start;
    text-align: right;
}

html[dir="rtl"] .sn-price-factor-checklist span {
    direction: rtl;
}

html[dir="rtl"] .sn-price-factor-button {
    direction: rtl;
}

html[dir="rtl"] .sn-price-factor-button i {
    transform: scaleX(-1);
}

html[dir="rtl"] .sn-price-factor-button:hover i {
    transform: scaleX(-1) translateX(4px);
}

@media (max-width: 600px) {
    html[dir="rtl"] .sn-price-factors-heading {
        text-align: right;
    }
}




/* SMARTNEST — PRICING PAYMENT RTL */

html[dir="rtl"] .sn-payment-process {
    text-align: right;
}

html[dir="rtl"] .sn-payment-step-top {
    flex-direction: row-reverse;
}

html[dir="rtl"] .sn-payment-note {
    flex-direction: row-reverse;
}

html[dir="rtl"] .sn-payment-heading,
html[dir="rtl"] .sn-payment-heading h2,
html[dir="rtl"] .sn-payment-heading > p {
    margin-right: 0;
}

@media (max-width: 600px) {
    html[dir="rtl"] .sn-payment-note {
        align-items: flex-start;
    }
}



/* SMARTNEST — PLAN FINDER RTL */

html[dir="rtl"] .sn-plan-finder {
    text-align: right;
}

html[dir="rtl"] .sn-plan-question,
html[dir="rtl"] .sn-plan-choice,
html[dir="rtl"] .sn-plan-result-top,
html[dir="rtl"] .sn-plan-result-list li,
html[dir="rtl"] .sn-plan-result-footer {
    flex-direction: row-reverse;
}

html[dir="rtl"] .sn-plan-choice-text {
    text-align: right;
}

html[dir="rtl"] .sn-plan-submit,
html[dir="rtl"] .sn-plan-contact {
    flex-direction: row-reverse;
}

html[dir="rtl"] .sn-plan-result-placeholder {
    direction: rtl;
}



/* SMARTNEST — PRICING INCLUSIONS RTL */

html[dir="rtl"] .sn-pricing-inclusions {
    text-align: right;
}

html[dir="rtl"] .sn-inclusion-item {
    grid-template-columns: 22px minmax(0, 1fr) 38px;
}

html[dir="rtl"] .sn-inclusion-number {
    grid-column: 3;
}

html[dir="rtl"] .sn-inclusion-content {
    grid-column: 2;
}

html[dir="rtl"] .sn-inclusion-check {
    grid-column: 1;
}

html[dir="rtl"] .sn-inclusions-note {
    flex-direction: row-reverse;
}

html[dir="rtl"] .sn-inclusions-visual-top,
html[dir="rtl"] .sn-inclusions-visual-footer {
    flex-direction: row-reverse;
}

html[dir="rtl"] .sn-inclusions-status-dot {
    margin-left: 0;
}


/* SMARTNEST CONTACT — RTL */

html[dir="rtl"] .sn-contact-section {
    text-align: right;
}

html[dir="rtl"] .sn-contact-info-item,
html[dir="rtl"] .sn-contact-info-bottom {
    flex-direction: row-reverse;
}

html[dir="rtl"] .sn-contact-submit {
    flex-direction: row-reverse;
}

html[dir="rtl"] .sn-contact-consent {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .sn-contact-info-content,
html[dir="rtl"] .sn-contact-info-bottom > div:last-child {
    min-width: 0;
}

html[dir="rtl"] .sn-contact-info-item a {
    overflow-wrap: anywhere;
}

/* CLIENT DASHBOARD RTL */

html[dir="rtl"] .sn-dashboard {
    text-align: right;
}

html[dir="rtl"] .sn-dashboard .sn-sidebar {
    inset: 0 0 0 auto;
    border-right: 0;
    border-left: 1px solid var(--sn-border);
}

html[dir="rtl"] .sn-dashboard .sn-brand {
    margin-left: 0;
    margin-right: 8px;
}

html[dir="rtl"] .sn-dashboard .sn-main {
    margin-left: 0;
    margin-right: var(--sn-sidebar-width);
}

html[dir="rtl"] .sn-dashboard .sn-nav-item {
    text-align: right;
}

html[dir="rtl"] .sn-dashboard .sn-nav-count,
html[dir="rtl"] .sn-dashboard .sn-notification-dot {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .sn-dashboard .sn-sidebar-help a i {
    margin-left: 0;
    margin-right: 5px;
    transform: scaleX(-1);
}

html[dir="rtl"] .sn-dashboard .sn-logout-btn {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .sn-dashboard .sn-breadcrumb i,
html[dir="rtl"] .sn-dashboard .sn-text-link i,
html[dir="rtl"] .sn-dashboard .sn-install-item > a i,
html[dir="rtl"] .sn-dashboard .sn-primary-btn i,
html[dir="rtl"] .sn-dashboard .sn-outline-btn i {
    transform: scaleX(-1);
}

html[dir="rtl"] .sn-dashboard .sn-bell-dot {
    right: auto;
    left: 8px;
}

html[dir="rtl"] .sn-dashboard .sn-toast {
    right: auto;
    left: 25px;
}

@media (max-width: 900px) {
    html[dir="rtl"] .sn-dashboard .sn-main {
        margin-right: 0;
    }

    html[dir="rtl"] .sn-dashboard .sn-sidebar {
        transform: translateX(100%);
        box-shadow: none;
    }

    html[dir="rtl"] .sn-dashboard .sn-sidebar.open {
        transform: translateX(0);
        box-shadow: -10px 0 50px rgba(0, 0, 0, .12);
    }
}

@media (max-width: 600px) {
    html[dir="rtl"] .sn-dashboard .sn-toast {
        left: 12px;
    }
}
