/**
 * AgriBills integration overrides — keep minimal; template styles live in ref/style.css
 */

/* AgriBills brand on Theme 01 CTAs (template dark surfaces keep theme01 --primary-color) */
.btn-default.btn-highlighted,
.btn-highlighted.btn-default {
    background-color: var(--site-secondary-solid, var(--accent-color));
    border-color: var(--site-secondary-solid, var(--accent-color));
}
.btn-default.btn-highlighted:hover,
.btn-highlighted.btn-default:hover {
    background-color: var(--site-secondary-hover, var(--site-secondary-solid));
    border-color: var(--site-secondary-hover, var(--site-secondary-solid));
}

.main-header .btn-default:not(.btn-phone),
.main-header .btn-default.btn-highlighted,
.hero-royal .btn-default:not(.btn-phone) {
    background-color: var(--site-secondary-solid, var(--accent-color, #bee847));
    border-color: var(--site-secondary-solid, var(--accent-color, #bee847));
}

:not(.dark-section) > .container .section-title .section-sub-title,
:not(.dark-section) .section-row .section-title .section-sub-title,
.page-pricing-royal .section-title .section-sub-title {
    color: var(--site-primary-solid, #163f34);
    background: var(--site-surface-tint, var(--secondary-color, #f4f9f0));
}

:not(.dark-section) > .container .section-title .section-sub-title::before,
:not(.dark-section) .section-row .section-title .section-sub-title::before,
.page-pricing-royal .section-title .section-sub-title::before {
    background: var(--site-secondary-solid, #bee847);
}

:not(.dark-section) > .container .section-title h1,
:not(.dark-section) > .container .section-title h2,
:not(.dark-section) > .container .section-title h3,
:not(.dark-section) .section-row .section-title h1,
:not(.dark-section) .section-row .section-title h2,
:not(.dark-section) .section-row .section-title h3,
.page-pricing-royal .section-title h2 {
    color: var(--site-primary-solid, #163f34);
}

.hero-royal::before {
    background: linear-gradient(180deg, transparent 25%, var(--site-primary-solid, var(--primary-color, #163f34)) 90%);
}

.dark-section .section-title .section-sub-title::before {
    background: var(--site-secondary-solid, var(--accent-color, #bee847));
}

.main-footer-royal.dark-section,
.page-header.dark-section {
    background-color: var(--site-primary-solid, var(--primary-color, #163f34));
}

/* Typography — body and headings on light sections; lime reserved for CTAs */
body {
    color: var(--site-text-body, var(--text-color, #3d4f48));
    line-height: 1.6;
}

:not(.dark-section) main h1,
:not(.dark-section) main h2,
:not(.dark-section) main h3,
:not(.dark-section) main h4,
:not(.dark-section) main h5,
:not(.dark-section) main h6,
:not(.dark-section) > .container h1,
:not(.dark-section) > .container h2,
:not(.dark-section) > .container h3 {
    color: var(--heading-color, var(--site-primary-solid, #163f34));
}

.main-header .navbar-nav > li.nav-item .nav-link {
    color: var(--site-primary-solid, var(--heading-color, #163f34));
}

.main-header .navbar-nav > li.nav-item .nav-link:hover,
.main-header .navbar-nav > li.nav-item .nav-link:focus {
    color: var(--site-secondary-solid, var(--accent-color, #bee847));
}

.main-header.active-sticky-header .header-sticky {
    position: relative;
    z-index: 1000;
}
.main-header .header-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.main-header .navbar-nav > li.nav-item .nav-link .fa-search {
    font-size: 0.95rem;
}

/* Static hero (no Revolution Slider) */
.main-slider.slider-style-three .banner-static {
    position: relative;
    min-height: clamp(520px, 85vh, 780px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.main-slider.slider-style-three .banner-static__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--site-primary-rgb), 0.82) 0%, rgba(var(--site-primary-rgb), 0.45) 55%, rgba(var(--site-primary-rgb), 0.2) 100%);
}
.main-slider.slider-style-three .banner-static .auto-container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.main-slider.slider-style-three .banner-static .content-box {
    max-width: 760px;
    padding: clamp(7rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
}
.main-slider.slider-style-three .banner-static h1 {
    color: #fff;
    margin-bottom: 1rem;
}
.main-slider.slider-style-three .banner-static .text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}
.main-slider.slider-style-three .banner-static .theme-btn {
    margin-top: 0.5rem;
}

.main-slider.slider-style-three .banner-static--fallback {
    background-color: var(--site-surface-dark, var(--theme-color2));
    background-image: linear-gradient(135deg, var(--site-surface-dark, var(--theme-color2)) 0%, rgba(var(--site-primary-rgb), 0.85) 50%, rgba(var(--site-secondary-rgb), 0.35) 100%);
}

/* Font Awesome icons inside template icon boxes (when flaticon font files are absent) */
.about-block-four .inner-box .icon.fa:before,
.service-block-three .icon.fa:before,
.feature-block-two .icon.fa:before,
.why-choose-us .icon.fa:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
}

/* Flaticon → Font Awesome fallbacks (template font files not bundled) */
i[class*="flaticon-"]:before,
.icon[class*="flaticon-"]:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
}
.flaticon-shipment:before { content: "\f0d1"; }
.flaticon-logistics-delivery-4:before,
.flaticon-delivery-4:before { content: "\f48b"; }
.flaticon-logistics-1:before,
.flaticon-logistics:before { content: "\f466"; }
.flaticon-air-freight:before { content: "\f072"; }
.flaticon-order:before { content: "\f46d"; }
.flaticon-container:before { content: "\f494"; }
.flaticon-box-1:before { content: "\f466"; }
.flaticon-boxes:before { content: "\f468"; }
.flaticon-delivery-box-3:before,
.flaticon-delivery-box-4:before { content: "\f0d1"; }
.flaticon-stock-1:before { content: "\f201"; }

/* Fun facts / case studies / work section backgrounds */
.funfacts-section-three .fact-counter .bg.bg-image {
    background-size: cover;
    background-position: center;
    background-color: var(--site-surface-dark, var(--theme-color2));
}
.projects-section-three > .bg.bg-image {
    background-color: rgba(var(--site-primary-rgb), 0.04);
    opacity: 1;
}
.counter-block-three .icon.fa:before,
.work-block .icon.fa:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
}
.service-block-four .image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Floating header-style-three spacing on homepage */
.page-wrapper {
    position: relative;
}

.main-header.header-style-three {
    position: relative;
    z-index: 999;
    min-height: clamp(120px, 14vw, 160px);
}

.main-header.header-style-three .outer-column {
    position: absolute;
    top: 30px;
    left: 15px;
    right: 15px;
    width: auto;
}

.header-style-three .logo img,
.mobile-menu .nav-logo img,
.sticky-header .logo img {
    max-height: 48px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.header-style-three .header-lower .logo-box {
    height: auto;
    min-height: 80px;
    padding: 12px 0;
}

.main-header .nav.main-menu,
.main-header .main-menu {
    display: block;
    flex-wrap: unset;
    padding: 0;
    margin: 0;
}

.main-header.header-style-three .main-menu .navigation {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    clear: none;
}

.main-header.header-style-three .main-menu .navigation > li {
    float: none;
    flex-shrink: 0;
    display: list-item;
}

.main-header.header-style-three .main-menu .navigation > li > a {
    display: block;
    padding: 0;
    margin: 0;
}

.main-slider.slider-style-three {
    position: relative;
}

/* GSAP text-split fallback until animations initialize */
.text-split:not(.gsap-ready) {
    opacity: 1 !important;
}

body.gsap-ready .text-split {
    opacity: 1;
}

/* Prevent contact pull-up from overlapping hero when placed right after slider */
.main-slider.slider-style-three + .contact-section-two.pull-up {
    margin-top: 0;
}

/* Homepage: contact follows CTA, not hero — disable pull-up overlap */
.call-to-action-two + .contact-section-two.pull-up {
    margin-top: 0;
}

/* Last subscribe band should not overlap footer */
.subscribe-section.pull-down:last-of-type {
    margin-bottom: 0;
}

/* Reduce fun facts negative margin bleed into next section */
.funfacts-section-three {
    margin-bottom: 0;
}

/* Services strip visible on tablet/mobile */
@media (max-width: 1039.98px) {
    .services-section-three .outer-box {
        display: block;
        margin-top: 0;
    }
    .services-section-three .newsletter-block .inner-box {
        margin-left: 0;
        height: auto;
        min-height: 0;
        padding: 30px 24px;
    }
    .services-section-three .service-block-three .icon-box {
        margin-bottom: 1rem;
    }
}

/* Case studies carousel stays inside container on smaller desktops */
@media (max-width: 1199.98px) {
    .projects-section-three .carousel-outer {
        margin-right: 0;
    }
}

/* Why Choose Us text overflow fix */
@media (max-width: 1199.98px) {
    .why-choose-us .sec-title .text {
        margin-right: 0;
    }
}

/* Hide orphaned legacy CMS blocks that may bleed into hero */
.main-slider .theme__main__banner,
.main-slider .ab-hero,
main > .theme__main__banner:first-child,
main > .ab-hero:first-child {
    display: none;
}

/* Background fallbacks when template decorative images are missing */
.why-choose-us .bg.bg-image,
.call-to-action-two .bg.bg-image {
    background-size: cover;
    background-position: center;
}
.footer-newsletter-form .form-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.footer-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 4px;
}
.footer-newsletter-form .newsletter_submit {
    border: 0;
    cursor: pointer;
}

/* Map embed responsive */
.contact-section-two .google-map__one,
.map-widget iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

/* Inner page title fallback when bg image missing */
.page-title {
    background-color: var(--site-surface-dark, var(--theme-color2));
    background-size: cover;
    background-position: center;
}

/* Pricing package feature lists */
.pricing-block .list-style .feature-excluded {
    opacity: 0.55;
    text-decoration: line-through;
}

.pricing-block .inner-box {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--site-surface-dark, var(--theme-color2));
}

.pricing-block .pricing-inner-box {
    background-image: linear-gradient(160deg, rgba(var(--site-primary-rgb), 0.95) 0%, rgba(var(--site-primary-rgb), 0.82) 45%, rgba(var(--site-secondary-rgb), 0.25) 100%);
}

.pricing-block .popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--site-accent, var(--theme-color1));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

.pricing-block.active-block .inner-box {
    border: 2px solid var(--site-accent, var(--theme-color1));
}

.theme-btn.btn-style-one:hover {
    background-color: var(--site-secondary-hover, var(--site-accent));
}

/* Tinymce / CMS inner content typography */
.tinymce-content,
.sidebar-page-container .inner-column {
    color: #555;
    line-height: 1.8;
}
.tinymce-content h1,
.tinymce-content h2,
.tinymce-content h3,
.tinymce-content h4 {
    color: var(--site-surface-dark, var(--theme-color2));
    margin: 1.5rem 0 0.75rem;
}
.tinymce-content p { margin-bottom: 1rem; }
.tinymce-content ul,
.tinymce-content ol { margin: 0 0 1rem 1.25rem; }
.tinymce-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.tinymce-content table th,
.tinymce-content table td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
}

/* Testimonial avatar spacing */
.testimonial-block-three .testi-holder {
    margin-left: 15px;
}
.testimonial-block-three .testi-img img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* Contact tabs */
.contact-tabs .tab-buttons .tab-btn .icon-box i {
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free", fal, fa;
}

/* Map section */
.map-section .map-outer iframe,
.map-section .google-map__one {
    width: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/* Subscribe band backgrounds */
.subscribe-section .bg.bg-image {
    background-size: cover;
    background-position: center;
    background-color: var(--site-surface-dark, var(--theme-color2));
}
.subscribe-section .subscribe-form .form-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.subscribe-section .subscribe-form input[type="email"] {
    flex: 1;
    min-width: 0;
}

/* Pull-up / pull-down spacing guards */
.contact-section-two.pull-up + .map-section,
.contact-section-two.pull-up + .pricing-section {
    margin-top: 0;
}
.subscribe-section.pull-down {
    position: relative;
    z-index: 2;
}
.main-footer {
    position: relative;
    z-index: 3;
}

/* Checkout / plan order */
.checkout-section .checkout-summary.inner-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.checkout-section .coupon-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.checkout-section .checkout-subdomain-group {
    display: flex;
}
.checkout-section .checkout-subdomain-group .input-group-text {
    white-space: nowrap;
    padding: 0 0.75rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
}
.checkout-login-prompt {
    padding: 3rem 2rem;
}

/* Invoice / payment inner pages */
.invoice-view-box,
.payment-confirm-box,
.payment-manual-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.payment-summary-list strong {
    margin-left: 0.25rem;
}

.main-footer.footer-style-one > .bg.bg-image {
    background-size: cover;
    background-position: center;
    background-color: var(--site-surface-dark, var(--theme-color2));
}
.main-footer .about-widget .logo img {
    max-height: 48px;
    width: auto;
}

/* Footer layout, contrast, and icon fixes */
.subscribe-section.pull-down + footer.main-footer .widgets-section {
    padding-top: clamp(4rem, 8vw, 6.25rem);
}
.main-footer .footer-widget .text {
    color: #9c9ba7;
}
.main-footer .widget-title,
.main-footer .sub__title__two {
    color: var(--theme-color-light, #fff);
}
.main-footer .info-btn-two .icon.fa:before,
.main-footer .contact-list-two li i.fa:before,
.main-footer .user-links li a i.fa:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
}
@media (max-width: 767.98px) {
    .main-footer .icon-plane-3 {
        opacity: 0.35;
    }
}

.about-block-three .icon.fa:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900;
}
.login-gate-box {
    padding: 3rem 2rem;
}

.empty-state-box {
    padding: 2.5rem 1.5rem;
    background: rgba(var(--site-primary-rgb), 0.04);
    border-radius: 8px;
}
.empty-state-box h4 {
    margin-bottom: 0.75rem;
    color: var(--site-surface-dark, var(--theme-color2));
}
.empty-state-box__text {
    margin-bottom: 1.25rem;
    color: #666;
}

.error-page-section .error-page__title-box img {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

/* Legacy class safety — hide if any CMS block still emits old markup */
.blog__details,
.testimonial__section__three {
    display: none !important;
}

@media (max-width: 991px) {
    .main-slider.slider-style-three .banner-static .content-box {
        padding-top: 8rem;
    }
    .main-header.header-style-three {
        min-height: clamp(140px, 18vw, 180px);
    }
    .main-header.header-style-three .outer-column {
        top: 15px;
        left: 10px;
        right: 10px;
    }
}

.main-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(17, 34, 51, 0.96);
    color: #fff;
    padding: 1rem 1.25rem;
}

.footer-app-badges-royal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.footer-app-badge-royal {
    display: inline-flex;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-app-badge-royal:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.footer-app-badge-royal img {
    width: auto;
    display: block;
}
.footer-app-badge-royal__apple {
    height: 40px;
}
.footer-app-badge-royal__play {
    height: 60px;
}
@media (max-width: 767.98px) {
    .footer-copyright-royal {
        justify-content: center;
        text-align: center;
    }
    .footer-app-badges-royal {
        order: 2;
        width: 100%;
    }
    .footer-social-links-royal {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.home-announcement-modal {
    z-index: 10001;
}
.home-announcement-modal .modal-dialog {
    max-width: 680px;
    margin: 1.25rem auto;
}
.home-announcement-modal .modal-content {
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(22, 63, 52, 0.28);
    overflow: hidden;
}
.home-announcement-modal__hero {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    background: var(--site-primary-solid, #163f34);
    overflow: hidden;
}
.home-announcement-modal__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-announcement-modal__hero:not(.is-brand)::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 72px;
    background: linear-gradient(180deg, rgba(22, 63, 52, 0.38), transparent);
    pointer-events: none;
}
.home-announcement-modal__hero.is-brand {
    aspect-ratio: auto;
    height: 88px;
    max-height: none;
    background:
        radial-gradient(circle at 88% 20%, rgba(190, 232, 71, 0.55), transparent 42%),
        linear-gradient(135deg, var(--site-primary-solid, #163f34) 0%, #1f5c48 72%, var(--site-accent, #bee847) 160%);
}
.home-announcement-modal__dismiss {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--site-primary-solid, #163f34);
    box-shadow: 0 8px 20px rgba(22, 63, 52, 0.18);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.home-announcement-modal__dismiss:hover,
.home-announcement-modal__dismiss:focus-visible {
    background: #f4f8f2;
    outline: 2px solid var(--site-accent, #bee847);
    outline-offset: 2px;
}
.home-announcement-modal__sheet {
    padding: 1.5rem 1.75rem 1.35rem;
}
.home-announcement-modal__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.7rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: rgba(190, 232, 71, 0.32);
    color: var(--site-primary-solid, #163f34);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.home-announcement-modal__chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6fa31a;
}
.home-announcement-modal__title {
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 1.65rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--site-primary-solid, #163f34);
}
.home-announcement-modal__body {
    font-size: 1rem;
    line-height: 1.7;
    color: #3d4f4a;
}
.home-announcement-modal__body p:last-child {
    margin-bottom: 0;
}
.home-announcement-modal__body img {
    display: none;
}
.home-announcement-modal__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1.35rem;
}
.home-announcement-modal__cta.theme-btn.btn-style-one {
    margin: 0;
    background: var(--site-accent, #bee847);
    color: var(--site-primary-solid, #163f34);
    border: 0;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 1.4rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: none;
}
.home-announcement-modal__cta.theme-btn.btn-style-one:before,
.home-announcement-modal__cta.theme-btn.btn-style-one:hover:before {
    display: none;
    width: 0;
}
.home-announcement-modal__cta .btn-title {
    position: relative;
    z-index: 1;
    text-transform: none;
    color: inherit;
}
.home-announcement-modal__cta.theme-btn.btn-style-one:hover,
.home-announcement-modal__cta.theme-btn.btn-style-one:focus-visible {
    background: #d4f56a;
    color: var(--site-primary-solid, #163f34);
}
.home-announcement-modal__close {
    background: transparent;
    border: 0;
    color: #5c6f68;
    font-weight: 600;
    padding: 0.65rem 0.35rem;
    cursor: pointer;
}
.home-announcement-modal__close:hover,
.home-announcement-modal__close:focus-visible {
    color: var(--site-primary-solid, #163f34);
    text-decoration: underline;
    outline: none;
}
@media (max-width: 575.98px) {
    .home-announcement-modal .modal-dialog {
        margin: 0.75rem;
    }
    .home-announcement-modal__hero {
        max-height: 180px;
    }
    .home-announcement-modal__hero.is-brand {
        height: 72px;
    }
    .home-announcement-modal__sheet {
        padding: 1.15rem 1.1rem 1rem;
    }
    .home-announcement-modal__title {
        font-size: 1.35rem;
    }
    .home-announcement-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .home-announcement-modal__cta.theme-btn.btn-style-one,
    .home-announcement-modal__close {
        width: 100%;
        text-align: center;
    }
}
.modal-backdrop.show {
    z-index: 10000;
}
body:has(.home-announcement-modal.show) .modal-backdrop.show {
    background-color: rgba(12, 28, 24, 0.62);
}

.main-header .navbar-nav > li > a.nav-link {
    display: inline-flex;
    align-items: center;
}

.cookie-consent-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Theme 01 header/footer logos — AgriBills brand cap */
.main-header .navbar-brand img,
.main-footer-royal .footer-logo-royal img,
.responsive-menu .navbar-brand img,
.slicknav_menu .navbar-brand img {
    max-width: 180px;
    width: auto;
    height: auto;
    min-height: 40px;
    display: block;
    object-fit: contain;
}
@media (max-width: 991.98px) {
    .main-header .navbar-brand img,
    .main-footer-royal .footer-logo-royal img,
    .responsive-menu .navbar-brand img,
    .slicknav_menu .navbar-brand img {
        max-width: 140px;
    }

    /* Keep the desktop navbar collapsed; Slicknav is the mobile menu. */
    header.main-header .navbar-collapse.main-menu:not(.show) {
        display: none;
    }

    header.main-header .header-btn {
        display: none;
    }

    header.main-header .slicknav_nav {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    header.main-header .slicknav_nav[style*="none"] {
        display: none !important;
    }

    header.main-header .slicknav_nav > li {
        width: auto;
        display: block;
    }

    header.main-header .slicknav_nav > li > a {
        white-space: nowrap;
        padding: 8px 12px;
    }

    header.main-header .slicknav_nav ul {
        display: block;
        flex-basis: 100%;
    }

    header.main-header .slicknav_nav ul li {
        width: 100%;
        display: block;
    }

    header.main-header .slicknav_nav ul li a {
        white-space: normal;
    }
}

/* Hero: ensure copy is visible if WOW/GSAP fails or runs late */
.hero-royal .section-title h1,
.hero-royal .section-sub-title,
.hero-royal .section-title-content,
.hero-royal .hero-list-royal,
.hero-royal .hero-content-btn-royal {
    opacity: 1;
    visibility: visible;
}
.hero-royal .text-anime-style-3,
.hero-royal .text-anime-style-3 * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Pricing page — Theme 01 Royal grid */
.page-pricing-royal {
    background: var(--white-color, #fff);
}
.page-header + .page-pricing-royal {
    padding-top: 60px !important;
}
.page-header + .page-about-royal {
    padding-top: 60px !important;
}
.about-page-cta-royal__lead {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.85;
}
.about-page-cta-royal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 28px;
}
.pricing-plans-grid-royal__col {
    display: flex;
    margin-bottom: 30px;
}
.pricing-plans-grid-royal__col .pricing-item-royal {
    flex: 1;
    width: 100%;
    position: relative;
}
.pricing-item-royal--featured {
    border: 2px solid var(--site-primary-solid, var(--accent-color, #bee847));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.pricing-item-royal__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    background: var(--site-secondary-solid, var(--accent-color, #bee847));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 999px;
}
.pricing-item-royal__name {
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
    padding-right: 4rem;
}
.pricing-item-royal--featured .pricing-item-royal__name {
    padding-right: 5.5rem;
}
.pricing-item-price-royal__amount {
    font-size: 36px;
    line-height: 1em;
    margin: 0;
    font-weight: 700;
    color: inherit;
}
.pricing-item-price-royal__amount sub {
    font-size: 16px;
    font-weight: 500;
    bottom: 0;
}
.pricing-item-list-royal--package {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pricing-features-more {
    margin-top: 8px;
}
.pricing-features-more summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--site-primary-solid, var(--primary-color, #163f34));
    list-style: none;
    padding: 4px 0;
}
.pricing-features-more summary::-webkit-details-marker {
    display: none;
}
.pricing-features-more summary::after {
    content: " +";
    font-weight: 700;
}
.pricing-features-more[open] summary::after {
    content: " −";
}
.pricing-features-more ul {
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
}
.pricing-features-more ul li {
    position: relative;
    line-height: 1.5em;
    padding-left: 25px;
    margin-bottom: 12px;
}
.pricing-features-more ul li::before {
    content: "\f058";
    position: absolute;
    font-family: "Font Awesome 6 Free", "Font Awesome 7 Free";
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-color);
    top: 0;
    left: 0;
}
.pricing-item-list-royal--excluded {
    margin-top: 12px;
    opacity: 0.75;
}
.pricing-item-list-royal--excluded li::before {
    content: "\f00d" !important;
    color: #999 !important;
}
.pricing-page-sales-cta {
    margin-top: 20px;
    font-size: 17px;
}
.pricing-page-sales-cta a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 767.98px) {
    .page-pricing-royal {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    .pricing-item-royal__badge {
        top: 12px;
        right: 12px;
    }
}

/* Blog archive — Theme 01 Royal */
.page-header + .page-blog-royal {
    padding-top: 60px !important;
}
.page-blog-royal .blog-post-card-col {
    display: flex;
    margin-bottom: 30px;
}
.page-blog-royal .blog-post-card-col .post-item {
    width: 100%;
    flex: 1;
}
.post-item-title {
    font-size: 22px;
    line-height: 1.35;
    margin: 0;
}
.post-item-title a {
    color: inherit;
}
.post-item-excerpt {
    font-size: 15px;
    line-height: 1.5;
    margin: 10px 0 0;
    opacity: 0.85;
}

/* Blog single + sidebar */
.page-single-post-royal {
    padding-top: 60px;
    padding-bottom: 80px;
}
.page-header + .page-single-post-royal {
    padding-top: 48px;
}
.page-header-box .post-single-meta ol.breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}
.sidebar-search-box .form-group {
    position: relative;
}
.sidebar-search-box input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--divider-color, #e5e5e5);
}
.sidebar-search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--accent-color);
}

/* Site search — Theme 01 Royal */
.page-header + .page-search-royal {
    padding-top: 48px !important;
}
.page-search-royal {
    padding-bottom: 80px;
}
.search-royal-form__inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--white-color, #fff);
    border: 1px solid var(--divider-color, #e5e5e5);
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 12px 40px rgba(var(--site-primary-rgb, 255, 109, 46), 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-royal-form__inner:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 18%, transparent);
}
.search-royal-form__icon {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-size: 18px;
    padding-right: 12px;
    opacity: 0.85;
}
.search-royal-form__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 17px;
    line-height: 1.4;
    padding: 12px 8px;
    outline: none;
}
.search-royal-form__submit {
    flex-shrink: 0;
    border-radius: 999px !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
}
.search-royal-form__hint {
    margin-top: 14px;
    font-size: 15px;
    opacity: 0.75;
}
.search-royal-summary {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 36px;
    color: var(--theme-color2, inherit);
}
.search-royal-results__heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-royal-results__count {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--site-primary-rgb, 255, 109, 46), 0.12);
    color: var(--accent-color);
}
.search-result-page-card {
    background: var(--white-color, #fff);
    border: 1px solid var(--divider-color, #e5e5e5);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.search-result-page-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent-color) 35%, var(--divider-color, #e5e5e5));
    box-shadow: 0 12px 32px rgba(var(--site-primary-rgb, 255, 109, 46), 0.1);
}
.search-result-page-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--site-primary-rgb, 255, 109, 46), 0.1);
    color: var(--accent-color);
    margin-bottom: 10px;
}
.search-result-page-card__title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 8px;
}
.search-result-page-card__title a {
    color: inherit;
    text-decoration: none;
}
.search-result-page-card__title a:hover {
    color: var(--accent-color);
}
.search-result-page-card__excerpt {
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    opacity: 0.82;
}
.search-royal-link {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.page-search-royal .blog-post-card-col {
    display: flex;
    margin-bottom: 24px;
}
.page-search-royal .blog-post-card-col .post-item {
    width: 100%;
    flex: 1;
}
@media (max-width: 767.98px) {
    .page-search-royal {
        padding-bottom: 48px;
    }
    .search-royal-form__inner {
        flex-direction: column;
        border-radius: 20px;
        padding: 12px;
    }
    .search-royal-form__icon {
        display: none;
    }
    .search-royal-form__input {
        padding: 10px 12px;
    }
    .search-royal-form__submit {
        width: 100%;
    }
}

/* Plan order / checkout — Theme 01 Royal */
.page-header + .page-plan-order-royal {
    padding-top: 48px !important;
}
.page-plan-order-royal {
    padding-bottom: 80px;
}
.page-plan-order-royal .plan-order-royal__intro {
    margin-bottom: 40px;
}
.page-plan-order-royal .plan-order-royal__grid {
    align-items: flex-start;
    row-gap: 28px;
}
.page-plan-order-royal .plan-order-royal__card {
    background: var(--white-color, #fff);
    border: 1px solid var(--divider-color, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 16px 48px rgba(var(--site-primary-rgb, 17, 34, 51), 0.06);
    height: 100%;
}
.page-plan-order-royal .plan-order-royal__card--summary {
    position: relative;
}
@media (min-width: 992px) {
    .page-plan-order-royal .plan-order-royal__summary-col {
        position: sticky;
        top: 100px;
    }
}
.page-plan-order-royal .plan-order-royal__input {
    width: 100%;
    border: 1px solid var(--divider-color, #ddd);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    background: var(--white-color, #fff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.page-plan-order-royal .plan-order-royal__input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 15%, transparent);
}
.page-plan-order-royal .plan-order-royal__subdomain-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--divider-color, #ddd);
    border-radius: 10px;
    overflow: hidden;
}
.page-plan-order-royal .plan-order-royal__subdomain-group .plan-order-royal__input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.page-plan-order-royal .plan-order-royal__subdomain-suffix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: rgba(var(--site-primary-rgb, 17, 34, 51), 0.06);
    font-size: 14px;
    white-space: nowrap;
    border-left: 1px solid var(--divider-color, #ddd);
}
.page-plan-order-royal .plan-order-royal__coupon {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.page-plan-order-royal .plan-order-royal__coupon .plan-order-royal__input {
    flex: 1 1 140px;
    min-width: 0;
}
.page-plan-order-royal .plan-order-royal__coupon-btn {
    flex-shrink: 0;
}
.page-plan-order-royal .plan-order-royal__submit {
    width: 100%;
    justify-content: center;
}
.page-plan-order-royal .plan-order-royal__duration {
    margin-bottom: 0;
    opacity: 0.75;
    font-size: 15px;
}
.page-plan-order-royal .plan-order-royal__total {
    margin-bottom: 4px;
}
.page-plan-order-royal .plan-order-royal__tax-note {
    font-size: 13px;
    opacity: 0.7;
    margin: 0 0 16px;
}
.page-plan-order-royal .plan-order-royal__desc {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
    opacity: 0.85;
}
.page-plan-order-royal .plan-order-royal__features-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
}
.page-plan-order-royal .plan-order-royal__summary-actions {
    margin-top: 24px;
}
.page-plan-order-royal .plan-order-royal__trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.page-plan-order-royal .plan-order-royal__trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 12px;
    opacity: 0.9;
}
.page-plan-order-royal .plan-order-royal__trust-list li i {
    color: var(--accent-color);
    margin-top: 3px;
}
.page-plan-order-royal .plan-order-royal__trust-list--compact {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--divider-color, rgba(0, 0, 0, 0.08));
}
.page-plan-order-royal .plan-order-royal__auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.page-plan-order-royal .plan-order-royal__auth-note {
    text-align: center;
    font-size: 14px;
}
.page-plan-order-royal .plan-order-royal__auth-note a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.page-plan-order-royal.checkout-section .checkout-summary.inner-box,
.checkout-section .checkout-summary.inner-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
@media (max-width: 991.98px) {
    .page-plan-order-royal {
        padding-bottom: 48px;
    }
    .page-plan-order-royal .plan-order-royal__card {
        padding: 24px 20px;
    }
}

.sidebar-latest-post {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    align-items: flex-start;
}
.sidebar-latest-post__thumb {
    flex: 0 0 72px;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.sidebar-latest-post__thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
}
.sidebar-latest-post__body h4 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 4px;
}
.sidebar-latest-post__body .date {
    font-size: 13px;
    opacity: 0.75;
}
.page-category-list ul li a span {
    float: right;
    opacity: 0.7;
}
.blog-post-nav-royal {
    display: grid;
    gap: 16px;
    margin: 40px 0;
    padding: 24px 0;
    border-top: 1px solid var(--divider-color, #e5e5e5);
    border-bottom: 1px solid var(--divider-color, #e5e5e5);
}
@media (min-width: 768px) {
    .blog-post-nav-royal {
        grid-template-columns: 1fr 1fr;
    }
}
.blog-post-nav-royal__link {
    display: block;
    padding: 16px;
    border-radius: 16px;
    background: var(--secondary-color, #f5f5f5);
    text-decoration: none;
    color: inherit;
}
.blog-post-nav-royal__link--next {
    text-align: right;
}
.blog-post-nav-royal__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 6px;
}
.blog-post-nav-royal__title {
    font-weight: 600;
    line-height: 1.35;
}
.blog-comments-royal__title {
    margin-bottom: 20px;
}
.blog-comment-card {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--divider-color, #eee);
}
.blog-comment-card .comment-one__image img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.blog-comment-card__date {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 8px;
}
.blog-login-gate {
    padding: 24px;
    border-radius: 16px;
    background: var(--secondary-color, #f5f5f5);
    text-align: center;
}
@media (max-width: 991.98px) {
    .page-single-sidebar {
        margin-top: 48px;
    }
}

/* Contact page (Theme 01 Royal) */
.contact-form .contact-form-fields .contact__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.contact-form .contact-form-fields .col-md-12 {
    margin-bottom: 1rem;
}
.contact-form .contact-form-fields .form-control {
    border-radius: 12px;
    padding: 12px 16px;
}
.contact-form .contact-form-fields .custom__btn {
    margin-top: 0;
    padding: 0;
    background: none;
    border: none;
}
.contact-form .contact-form-fields .ht_btn.btn-default,
.contact-form .contact-form-fields button.custom_submit_form_button.btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: auto;
    padding: 14px 28px;
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.contact-form .contact-form-fields .ht_btn.btn-default:hover,
.contact-form .contact-form-fields button.custom_submit_form_button.btn-default:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.contact-form .contact-form-fields .col-12.mt-30 {
    margin-top: 0 !important;
}
@media (min-width: 768px) {
    .contact-form .contact-form-fields > .row > .col-md-12:nth-child(3),
    .contact-form .contact-form-fields > .row > .col-md-12:nth-child(4) {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
    .contact-form .contact-form-fields > .row {
        display: flex;
        flex-wrap: wrap;
        gap: 0 24px;
    }
}
.contact-location-form-box .google-map-iframe {
    min-height: 320px;
}
.contact-location-form-box .google-map-iframe iframe {
    min-height: 320px;
    border: 0;
}
@media (min-width: 1200px) {
    .contact-location-form-box .google-map-iframe,
    .contact-location-form-box .google-map-iframe iframe {
        min-height: 420px;
    }
}

/* Invoice view — Theme 01 Royal */
.page-header + .page-invoice-royal {
    padding-top: 48px !important;
}
.page-invoice-royal {
    padding-top: 48px;
    padding-bottom: 80px;
}
.page-invoice-royal .invoice-royal__intro {
    margin-bottom: 36px;
}
.page-invoice-royal .invoice-royal__grid {
    align-items: flex-start;
    row-gap: 28px;
}
.page-invoice-royal .invoice-royal__card {
    background: var(--white-color, #fff);
    border: 1px solid var(--divider-color, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 16px 48px rgba(var(--site-primary-rgb, 17, 34, 51), 0.06);
}
.page-invoice-royal .invoice-royal__card--pay .section-title {
    margin-bottom: 20px;
}
.page-invoice-royal .invoice-royal__pay-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}
@media (min-width: 992px) {
    .page-invoice-royal .invoice-royal__sidebar-col {
        position: sticky;
        top: 100px;
    }
}
.page-invoice-royal .invoice-royal__amount-due {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(var(--site-primary-rgb, 17, 34, 51), 0.05);
}
.page-invoice-royal .invoice-royal__amount-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
}
.page-invoice-royal .invoice-royal__amount-value {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: var(--site-surface-dark, var(--theme-color2));
}
.page-invoice-royal .invoice-royal__field {
    margin-bottom: 20px;
}
.page-invoice-royal .invoice-royal__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.page-invoice-royal .invoice-royal__field select.gateway,
.page-invoice-royal .plan-order-royal__input {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--divider-color, #ddd);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--site-surface-dark, var(--theme-color2, #112233));
    background-color: var(--white-color, #fff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.page-invoice-royal .invoice-royal__field select.gateway {
    padding-right: 44px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23112233' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
}
.page-invoice-royal .invoice-royal__field select.gateway:focus,
.page-invoice-royal .plan-order-royal__input:focus {
    outline: none;
    border-color: var(--site-primary-solid, var(--accent-color));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-primary-solid, var(--accent-color)) 15%, transparent);
}
.page-invoice-royal .invoice-royal__field select.gateway option {
    color: var(--site-surface-dark, #112233);
    background: var(--white-color, #fff);
}
.page-invoice-royal .invoice-royal__pay-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
}
.page-invoice-royal .invoice-royal__pay-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.page-invoice-royal .invoice-royal__doc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.page-invoice-royal .invoice-royal__doc-actions--inline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.page-invoice-royal .invoice-royal__secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--site-surface-dark, var(--theme-color2, #112233));
    background: var(--white-color, #fff);
    border: 1px solid var(--divider-color, rgba(0, 0, 0, 0.12));
}
.page-invoice-royal .invoice-royal__secondary-btn .btn-title {
    color: inherit;
    position: relative;
    z-index: 1;
}
.page-invoice-royal .invoice-royal__secondary-btn::before {
    display: none;
}
.page-invoice-royal .invoice-royal__secondary-btn::after {
    background: rgba(var(--site-primary-rgb, 17, 34, 51), 0.06);
}
.page-invoice-royal .invoice-royal__secondary-btn:hover {
    color: var(--site-primary-solid, var(--site-surface-dark, #112233));
    border-color: rgba(var(--site-primary-rgb, 17, 34, 51), 0.25);
}
.page-invoice-royal .invoice-royal__secondary-btn:hover .btn-title {
    color: inherit;
}
.page-invoice-royal .invoice-royal__card--actions {
    margin-top: -8px;
    padding: 20px 28px;
}

/* Shared invoice document (web) */
.page-invoice-royal .invoice-doc__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--divider-color, rgba(0, 0, 0, 0.08));
}
.page-invoice-royal .invoice-doc__logo {
    max-width: 220px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.page-invoice-royal .invoice-doc__status-wrap {
    text-align: right;
}
.page-invoice-royal .invoice-doc__due {
    margin: 8px 0 0;
    font-size: 14px;
    color: #666;
}
.page-invoice-royal .invoice-doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--divider-color, rgba(0, 0, 0, 0.08));
}
.page-invoice-royal .invoice-doc__meta-item {
    flex: 1 1 140px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(var(--site-primary-rgb, 17, 34, 51), 0.04);
}
.page-invoice-royal .invoice-doc__meta-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
    margin-bottom: 4px;
}
.page-invoice-royal .invoice-doc__meta-value {
    font-weight: 700;
    font-size: 16px;
}
.page-invoice-royal .invoice-doc__addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--divider-color, rgba(0, 0, 0, 0.08));
}
@media (max-width: 767.98px) {
    .page-invoice-royal .invoice-doc__addresses {
        grid-template-columns: 1fr;
    }
    .page-invoice-royal .invoice-doc__address--pay {
        text-align: left;
    }
}
.page-invoice-royal .invoice-doc__address-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color, #0d457b);
    margin-bottom: 8px;
}
.page-invoice-royal .invoice-doc__party-name {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}
.page-invoice-royal .invoice-doc__address--pay {
    text-align: right;
}
.page-invoice-royal .invoice-doc__company-address {
    margin: 0 0 8px;
    line-height: 1.55;
    white-space: pre-line;
}
.page-invoice-royal .invoice-doc__detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.page-invoice-royal .invoice-doc__detail-list li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.45;
}
.page-invoice-royal .invoice-doc__detail-label {
    font-weight: 600;
    margin-right: 6px;
}
.page-invoice-royal .invoice-doc__section-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}
.page-invoice-royal .invoice-doc__section-title--spaced {
    margin-top: 32px;
}
.page-invoice-royal .invoice-doc__table {
    width: 100%;
    border-collapse: collapse;
}
.page-invoice-royal .invoice-doc__table thead th {
    background: var(--site-surface-dark, var(--theme-color2, #112233));
    color: var(--white-color, #fff);
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    padding: 12px 16px;
}
.page-invoice-royal .invoice-doc__table thead th.invoice-doc__col-amount {
    text-align: right;
}
.page-invoice-royal .invoice-doc__table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--divider-color, rgba(0, 0, 0, 0.08));
    vertical-align: top;
    font-size: 15px;
}
.page-invoice-royal .invoice-doc__table tbody tr:nth-child(even):not(.invoice-doc__summary-row):not(.invoice-doc__total-row) td {
    background: rgba(var(--site-primary-rgb, 17, 34, 51), 0.02);
}
.page-invoice-royal .invoice-doc__col-sl {
    width: 48px;
    text-align: center;
    color: #666;
}
.page-invoice-royal .invoice-doc__col-amount {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.page-invoice-royal .invoice-doc__desc {
    line-height: 1.5;
    word-break: break-word;
}
.page-invoice-royal .invoice-doc__summary-row td {
    border-top: 1px solid var(--divider-color, rgba(0, 0, 0, 0.1));
}
.page-invoice-royal .invoice-doc__summary-label {
    text-align: right;
    font-weight: 500;
}
.page-invoice-royal .invoice-doc__total-row td {
    border-top: 2px solid var(--site-surface-dark, #112233);
    font-weight: 700;
    background: rgba(var(--site-primary-rgb, 17, 34, 51), 0.04);
}
.page-invoice-royal .invoice-doc__total-amount {
    font-size: 17px;
}
.page-invoice-royal .invoice-doc__table--payments {
    font-size: 14px;
}
.page-invoice-royal .invoice-doc__table--payments thead th {
    font-size: 12px;
}
.page-invoice-royal .badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

