/* Swarrnora light gold and ivory site theme.
   Loaded after custom.css so legacy page behavior remains intact. */
:root {
    --sw-ivory: #fffaf0;
    --sw-surface: #fffdf8;
    --sw-white: #ffffff;
    --sw-rose-50: #fff9e9;
    --sw-rose-100: #fbecc2;
    --sw-rose-300: #e7c66e;
    --sw-rose-500: #c99b35;
    --sw-rose-700: #805a16;
    --sw-rose-900: #51380d;
    --sw-ink: #3c2b17;
    --sw-muted: #725f43;
    --sw-gold: #a97922;
    --sw-line: rgba(169, 121, 34, 0.3);
    --sw-shadow: 0 18px 45px rgba(111, 77, 20, 0.13);
    --sw-radius: 14px;
}

/* Dedicated footer address section; isolated from legacy icon-box and animation CSS. */
a[href^="tel:"],
#BookingNo1,
.css_bkdesk:has(a[href^="tel:"]),
.icon-box:has(a[href^="tel:"]) {
    display: none !important;
}

#footer .footer-address-section {
    margin: 0;
    padding: 32px 20px 36px;
    background: transparent !important;
    text-align: center;
}

#footer .footer-address-section > .container {
    width: min(1140px, calc(100% - 32px));
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
}

#footer .footer-address-section h2 {
    margin: 0 0 18px;
    color: var(--sw-ink) !important;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

#footer .footer-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0;
}

#footer .footer-address-card {
    display: flex;
    min-height: 132px;
    margin: 0;
    padding: 22px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #fffdf5 0%, #fbf2d7 52%, #f1dda7 100%);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(111, 77, 20, 0.14);
    color: var(--sw-ink);
    font-style: normal;
    line-height: 1.45;
    text-align: center;
}

#footer .footer-address-card strong {
    margin-bottom: 4px;
    color: var(--sw-rose-700);
    font-size: 16px;
    font-weight: 800;
}

#footer .footer-address-card span {
    color: var(--sw-ink) !important;
    font-size: 14px;
}

@media (max-width: 640px) {
    #footer .footer-address-section {
        padding: 24px 14px 28px;
    }

    #footer .footer-address-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #footer .footer-address-card {
        min-height: 112px;
        padding: 17px 14px;
    }
}
/* Final light-gold canvas and contrast overrides. */
html {
    background: var(--sw-ivory) !important;
}

body,
body.ui-mobile-viewport {
    background-color: var(--sw-ivory) !important;
    background-image: url("../assets/images/swarrnora-light-gold-background.png") !important;
    background-repeat: repeat-y !important;
    background-position: top center !important;
    background-size: 100% auto !important;
    background-attachment: fixed !important;
}

body > .body,
body > .body > .main,
body > .body > main,
body > .body > .page-shell,
body > .body > .ui-page,
.ui-mobile-viewport,
.ui-overlay-a {
    background-color: transparent !important;
    background-image: none !important;
}

.btn,
button:not(.header-btn-collapse-nav),
input[type="button"],
input[type="submit"],
.ui-btn,
.rg-tab-btn,
.round-action,
.main table th,
.ui-content table th,
table.heading,
.rg-commodity-heading,
.ticker,
.marquee {
    background-color: var(--sw-rose-100) !important;
    background-image: none !important;
    border-color: var(--sw-rose-300) !important;
    color: var(--sw-ink) !important;
}

body > .body > #header #mainNav > li > a,
body > .body > #header #mainNav > li > .dropdown-item,
body > .body > #header .header-nav-main nav > ul > li > a,
.main table th,
.ui-content table th,
table.heading,
.rg-commodity-heading,
.marquee p,
.marquee a,
.marquee span,
.marquee div,
.ticker span {
    color: var(--sw-ink) !important;
}

body > .body > #footer,
body > .body > #footer > section.section,
body > .body > #footer .footer-copyright {
    background-color: var(--sw-rose-100) !important;
    background-image: none !important;
    color: var(--sw-ink) !important;
}

body > .body > #footer .icon-box-icon i,
body > .body > #footer .icon-box-info-title h3,
body > .body > #footer .icon-box-info p,
body > .body > #footer .footer-copyright p,
body > .body > #footer .footer-copyright span,
body > .body > #footer a,
#footer p,
#footer span {
    color: var(--sw-ink) !important;
}

/* Cascade endpoint for the page canvas. */
html body > .body > .main,
html body > .body > main,
html body > .body > .main > section,
html body > .body > main > section,
html body > .body > .main > section > .container,
html body > .body > main > section > .container,
html body > .body > .main .ui-page,
html body > .body > .main .ui-page-theme-a,
html body > .body > .main .ui-panel-wrapper,
html body > .body > .main .ui-content {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Absolute final canvas rule: .main and its structural wrappers never paint
   over the body background artwork. Content controls keep their own surfaces. */
html body > .body > .main,
html body > .body > main,
html body > .body > .main > section,
html body > .body > main > section,
html body > .body > .main .sw-office-locations .sw-contact-card,
html body > .body > .main .ui-page,
html body > .body > .main .ui-page-theme-a,
html body > .body > .main .ui-panel-wrapper,
html body > .body > .main .ui-content {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* WWW account pages: match the two-logo Live Rates header lockup. */
body > .body > #header .headImg .row:has(.www-parent-brand-column) {
    display: grid !important;
    grid-template-columns: minmax(0, 460px) minmax(0, 300px) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: min(780px, 100%) !important;
    min-height: 158px !important;
    margin: 0 auto !important;
}

body > .body > #header .headImg .row:has(.www-parent-brand-column) > .mob-none,
body > .body > #header .headImg .row:has(.www-parent-brand-column) > .social_icons {
    display: none !important;
}

body > .body > #header #iconimage:has(.www-parent-brand-column) {
    display: contents !important;
}

body > .body > #header #iconimage:has(.www-parent-brand-column) > span {
    display: contents !important;
}

body > .body > #header .www-header-brand-link,
body > .body > #header .www-parent-brand-column {
    display: flex !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

body > .body > #header .www-parent-brand-column {
    flex-direction: column !important;
}

body > .body > #header .www-header-brand-link .LogoImgWidth1 {
    display: block !important;
    width: min(460px, 100%) !important;
    height: 116px !important;
    max-width: 460px !important;
    max-height: 116px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    filter: brightness(.9) contrast(1.12) saturate(1.08) !important;
}

body > .body > #header .www-division-label {
    display: block !important;
    margin-bottom: 4px !important;
    color: #1b1b1b !important;
    font: 700 11px/1 "Montserrat", Arial, sans-serif !important;
    letter-spacing: .18em !important;
    text-align: center !important;
}

body > .body > #header .www-parent-brand-logo {
    display: block !important;
    width: min(300px, 100%) !important;
    height: 116px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    filter: brightness(.9) contrast(1.12) saturate(1.06) !important;
}

body > .body > #header .scroll-logo {
    display: none !important;
}

/* Keep the body artwork visible after jQuery Mobile and page scripts load. */
body > .body > .main,
body > .body > main,
body > .body > .main > section,
body > .body > main > section,
body > .body > .main .ui-page,
body > .body > .main .ui-page-theme-a,
body > .body > .main .ui-page-theme-a .ui-panel-wrapper,
body > .body > .main .ui-content,
body > .body > .main .ui-body-a {
    background-color: transparent !important;
    background-image: none !important;
}

@media (max-width: 767px) {
    body > .body > #header .headImg .row:has(.www-parent-brand-column) {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) !important;
        gap: 8px !important;
        min-height: 128px !important;
    }

    body > .body > #header .www-header-brand-link .LogoImgWidth1 {
        width: min(230px, 100%) !important;
        height: 80px !important;
        max-width: 230px !important;
        max-height: 80px !important;
    }

    body > .body > #header .www-parent-brand-logo {
        width: min(190px, 100%) !important;
        height: 80px !important;
    }

    body > .body > #header .www-division-label {
        margin-bottom: 3px !important;
        font-size: 9px !important;
        letter-spacing: .14em !important;
    }
}

/* Keep the complete header on the body's continuous background canvas. */
body > .body > #header {
    background-color: var(--sw-ivory) !important;
    background-image: url("../assets/images/swarrnora-light-gold-background.png") !important;
    background-repeat: repeat-y !important;
    background-position: top center !important;
    background-size: 100% auto !important;
    background-attachment: fixed !important;
    border-radius: 0 !important;
}

body > .body > #header .header-body,
body > .body > #header .header-top,
body > .body > #header .header-top-container,
body > .body > #header .header-conta30\.iner,
body > .body > #header .header-container,
body > .body > #header .header-row,
body > .body > #header .headImg,
body > .body > #header .naviRow,
body > .body > #header #navhead,
body > .body > #header .header-column,
body > .body > #header .header-nav,
body > .body > #header .header-nav-main,
body > .body > #header .header-nav-main nav,
body > .body > #header #mainNav,
body > .body > #header #mainNav > li,
body > .body > #header #mainNav > li > a,
body > .body > #header #mainNav > li > .dropdown-item,
body > .body > #header #mainNav > li > a:hover,
body > .body > #header #mainNav > li > a:focus,
body > .body > #header #mainNav > li.active > a
{
/* body > .body > #header .dropdown-menu .dropdown-item, */
/* body > .body > #header .dropdown-menu .dropdown-item:hover, */
/* body > .body > #header .dropdown-menu .dropdown-item:focus { */
    background-color: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
}

html,
body,
.body,
.ui-page,
.ui-page-theme-a,
.ui-content {
    background: var(--sw-ivory) !important;
    color: var(--sw-ink) !important;
}

body {
    min-width: 320px;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: var(--sw-ivory) !important;
    background-image: url("../assets/images/swarrnora-light-gold-background.png") !important;
    background-repeat: repeat-y !important;
    background-position: top center !important;
    background-size: 100% auto !important;
    background-attachment: fixed !important;
}

body > .body,
.main,
main,
.page-shell {
    background-color: transparent !important;
}

/* Header */
#header,
#header .header-body,
#header .header-top,
#header .header-top-container,
#header .header-conta30\.iner,
#header .header-container,
#header .header-row,
#header .header-column,
#header .header-nav,
#header .header-nav-main,
#header #navhead {
    background: transparent !important;
    border-radius: 0 !important;
    color: var(--sw-ink) !important;
}

#header {
    border: 0 !important;
    box-shadow: 0 8px 26px rgba(102, 48, 59, 0.08);
}

/* Solid ivory band: matches the ivory field baked into the logo PNG
   so the artwork blends instead of showing a rectangle. */
#header .headImg,
#header .header-row.headImg {
    min-height: 94px !important;
    padding: 4px 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--sw-line);
}

#iconimage .LogoImgWidth1 {
    display: block;
    width: min(100%, 280px) !important;
    max-height: 86px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain;
}

#header .naviRow,
.naviRow {
    min-height: 44px !important;
    padding: 0 !important;
    background: var(--sw-rose-500) !important;
    border-top: 1px solid var(--sw-rose-300) !important;
    border-bottom: 1px solid var(--sw-rose-700) !important;
}

#header .naviRow .header-column,
#header .naviRow .header-nav,
#header .naviRow .header-nav-main,
#header .naviRow .header-nav-main nav,
#header .naviRow #mainNav,
#header .naviRow .nav,
#header .naviRow #navhead {
    background: transparent !important;
}

#header #mainNav > li,
#header #mainNav > li > a,
#header #mainNav > li > .dropdown-item,
#header .header-nav-main nav > ul > li > a,
#header #showlogin a {
    color: var(--sw-white) !important;
}

#header #mainNav > li > a,
#header #mainNav > li > .dropdown-item,
#header .header-nav-main nav > ul > li > a {
    padding: 14px 9px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.025em;
}

#header #mainNav > li > a:hover,
#header #mainNav > li > a:focus,
#header #mainNav > li:hover > a,
#header #mainNav > li.active > a,
#header #mainNav > li > .dropdown-item:hover,
#header #mainNav > li > .dropdown-item:focus {
    background: var(--sw-rose-700) !important;
    color: var(--sw-white) !important;
}

/* Hide KYC and Calculator links from shared primary navigation. */
#header #mainNav > li:has(> a[href="KYC.html"]),
#header #mainNav > li:has(> a[href="../KYC.html"]),
#header #mainNav > li:has(> a[href="Calculator.html"]),
#header #mainNav > li:has(> a[href="../Calculator.html"]) {
    display: none !important;
}

#header .dropdown-menu {
    margin-top: 0;
    padding: 5px;
    background: var(--sw-white) !important;
    border: 1px solid var(--sw-line) !important;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--sw-shadow);
}

#header .dropdown-menu .dropdown-item {
    padding: 9px 12px !important;
    background: transparent !important;
    color: var(--sw-ink) !important;
    border-radius: 7px;
}

#header .dropdown-menu .dropdown-item:hover,
#header .dropdown-menu .dropdown-item:focus {
    background: var(--sw-rose-100) !important;
    color: var(--sw-rose-700) !important;
}

#header #openaccountbtn a,
#header #Lb4 a,
#header a#Lb3 {
    padding: 8px 12px !important;
    background: var(--sw-white) !important;
    border: 1px solid var(--sw-white) !important;
    border-radius: 7px !important;
    color: var(--sw-rose-700) !important;
    box-shadow: none !important;
}

#header #openaccountbtn a:hover,
#header #openaccountbtn a:focus,
#header #Lb4 a:hover,
#header #Lb4 a:focus,
#header a#Lb3:hover,
#header a#Lb3:focus {
    background: var(--sw-rose-100) !important;
    border-color: var(--sw-rose-100) !important;
    color: var(--sw-rose-700) !important;
}

.header-btn-collapse-nav {
    background: var(--sw-rose-700) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.header-btn-collapse-nav .hamburguer span,
.header-btn-collapse-nav .close span {
    background: var(--sw-white) !important;
}

/* Home header brand: anchor the logo to the left edge of the content column. */
#header #iconimage.header-brand-column {
    justify-content: flex-start !important;
    margin: 0 !important;
    text-align: left;
}

#header #iconimage.header-brand-column .header-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 !important;
}

body > .body > #header .header-row.headImg #iconimage.header-brand-column .header-brand-link .LogoImgWidth1 {
    margin-right: auto !important;
    margin-left: 0 !important;
}

@media (max-width: 575px) {
    #header #iconimage.header-brand-column {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* Main content */
.main,
.page-shell,
main,
section.section,
.main section.section,
.bg-light-5 {
    background-color: transparent !important;
    background-image: none !important;
    color: var(--sw-ink) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.headingTop,
.login-title {
    color: var(--sw-rose-700) !important;
}

p,
.main .container p,
.main .container li,
.main .container span:not([style]),
.ui-page-theme-a,
.ui-page-theme-a a {
    color: var(--sw-ink);
}

.main a:not(.btn):not(.nav-link),
.ui-page-theme-a a,
#footer a:not(.btn) {
    color: var(--sw-rose-700) !important;
}

.main a:not(.btn):not(.nav-link):hover,
.main a:not(.btn):not(.nav-link):focus {
    color: var(--sw-gold) !important;
}

.section,
.card,
.insight-panel,
.roundCorner,
.rg-bank-details-panel,
.ui-content,
.ui-body-a,
.ui-overlay-a {
    border-color: var(--sw-line) !important;
}

.main .container,
.content-section {
    color: var(--sw-ink);
}

/* Shared controls */
label,
.form-group label,
.ui-mobile label {
    color: var(--sw-rose-700) !important;
}

.form-control,
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea,
select,
.login-control,
.ui-input-text input,
.ui-input-search input {
    background: var(--sw-white) !important;
    color: var(--sw-ink) !important;
    border: 1px solid var(--sw-line) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--sw-rose-500) !important;
    box-shadow: 0 0 0 0.2rem rgba(215, 114, 130, 0.18) !important;
    outline: 0;
}

.btn,
button:not(.header-btn-collapse-nav),
input[type="button"],
input[type="submit"],
.ui-btn,
.rg-tab-btn,
.round-action {
    background: var(--sw-rose-500) !important;
    background-image: none !important;
    border-color: var(--sw-rose-700) !important;
    color: var(--sw-white) !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.btn:hover,
.btn:focus,
button:not(.header-btn-collapse-nav):hover,
button:not(.header-btn-collapse-nav):focus,
input[type="button"]:hover,
input[type="submit"]:hover,
.ui-btn:hover,
.ui-btn:focus {
    background: var(--sw-rose-700) !important;
    color: var(--sw-white) !important;
}

/* Tables and legacy rate panels */
.main table:not(.products):not(.market-table):not(.table1001),
.ui-content table {
    color: var(--sw-ink);
}

.main table th,
.ui-content table th,
table.heading,
.rg-commodity-heading {
    background: var(--sw-rose-500) !important;
    background-image: none !important;
    color: var(--sw-white) !important;
}

.main table td,
.ui-content table td {
    border-color: var(--sw-line) !important;
}

.rg-bank-details-panel .center-message,
table.goldd,
table.goldd1,
table.goldd2,
table.goldd3,
table.tt_333,
#gvData,
#gvData_silver,
#gvData table.res_mob_font_width,
#gvData_silver table.res_mob_font_width {
    background: var(--sw-white) !important;
    color: var(--sw-ink) !important;
    border-color: var(--sw-line) !important;
}

/* Footer */
#footer,
#footer > section.section,
#footer .footer-copyright {
    background: var(--sw-rose-100) !important;
    background-image: none !important;
    color: var(--sw-white) !important;
}

#footer {
    margin-top: 44px !important;
    border-top: 4px solid var(--sw-rose-300) !important;
}

#footer > section.section {
    margin: 0 !important;
    padding-top: 28px !important;
    padding-bottom: 24px !important;
}

#footer .icon-box-icon i,
#footer .icon-box-info-title h3,
#footer .icon-box-info p,
#footer .icon-box-info a,
#footer a,
#footer p,
#footer span {
    color: var(--sw-white) !important;
}

#footer .icon-box-icon i {
    opacity: 0.88;
}

#footer .footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
}

#footer .footer-copyright p,
#footer .footer-copyright span {
    color: var(--sw-rose-100) !important;
}

/* Homepage and banners */
.page-header,
.page-header-index,
.bg-primary,
.bg-color-primary {
    border-color: var(--sw-line) !important;
}

.page-header h1 {
    color: var(--sw-rose-700) !important;
}

.carousel {
    border-bottom: 3px solid var(--sw-rose-300);
}

/* Live rate components used by functional and legacy pages. */
.ticker,
.marquee {
    background: var(--sw-rose-700) !important;
    background-image: none !important;
    border-color: var(--sw-rose-300) !important;
    color: var(--sw-white) !important;
}

.marquee p,
.marquee a,
.marquee span,
.marquee div,
.ticker span {
    color: var(--sw-white) !important;
}

.market-card,
.market-card:nth-child(n),
.product-tile,
.insight-panel {
    background: var(--sw-white) !important;
    color: var(--sw-ink) !important;
    border: 1px solid var(--sw-line) !important;
    box-shadow: var(--sw-shadow) !important;
}

.market-card:nth-child(n+4),
.product-tile figcaption {
    background: var(--sw-rose-100) !important;
    color: var(--sw-ink) !important;
}

.products {
    background: var(--sw-white) !important;
    color: var(--sw-ink) !important;
    border-color: var(--sw-line) !important;
    box-shadow: var(--sw-shadow);
}

.products th {
    background: var(--sw-rose-500) !important;
    color: var(--sw-white) !important;
}

.products td,
.products .rate-pill,
.market-card .quote,
.news-title,
.trend-message,
.trend-levels td {
    color: var(--sw-ink) !important;
    border-color: var(--sw-line) !important;
}

.section-title,
.news-date,
.panel-status a {
    color: var(--sw-rose-700) !important;
}

.trend-gauge {
    background: conic-gradient(var(--sw-rose-500) calc(var(--trend) * 1%), var(--sw-rose-100) 0) !important;
}

.trend-gauge::before {
    background: var(--sw-white) !important;
    color: var(--sw-ink) !important;
}

.trend-signal {
    background: var(--sw-rose-500) !important;
    color: var(--sw-white) !important;
}

.rate-up {
    background: #2f7d55 !important;
    color: var(--sw-white) !important;
}

.rate-down {
    background: #a94e60 !important;
    color: var(--sw-white) !important;
}

/* jQuery Mobile account pages */
.ui-page-theme-a .ui-bar-inherit,
.ui-bar-a,
.ui-header,
.ui-footer {
    background: var(--sw-rose-50) !important;
    color: var(--sw-ink) !important;
    border-color: var(--sw-line) !important;
    text-shadow: none !important;
}

.ui-shadow-inset,
.ui-shadow {
    box-shadow: none !important;
}

@media (max-width: 991px) {
    #header .headImg,
    #header .header-row.headImg {
        min-height: 78px !important;
    }

    #iconimage .LogoImgWidth1 {
        width: min(78%, 250px) !important;
        max-height: 70px !important;
    }

    #header .header-nav-main nav {
        background: var(--sw-white) !important;
        border: 1px solid var(--sw-line) !important;
        box-shadow: var(--sw-shadow);
    }

    #header #mainNav > li > a,
    #header #mainNav > li > .dropdown-item,
    #header .header-nav-main nav > ul > li > a,
    #header #showlogin a {
        padding: 10px 12px !important;
        background: var(--sw-white) !important;
        color: var(--sw-ink) !important;
        border-bottom: 1px solid var(--sw-rose-100) !important;
    }

    #header #mainNav > li > a:hover,
    #header #mainNav > li > a:focus,
    #header #mainNav > li:hover > a {
        background: var(--sw-rose-50) !important;
        color: var(--sw-rose-700) !important;
    }
}

/* ============================================================
   NO-YELLOW BACKGROUND POLICY
   Legacy templates contain many hard-coded bullion-gold fills.
   Backgrounds now use only the Swarrnora rose/ivory system.
   ============================================================ */
:root {
    --sw-gold: var(--sw-rose-700);
}

.bg-primary,
.bg-color-primary,
.bg-warning,
.btn-warning,
.badge-warning,
.alert-warning,
.headingTop,
.headertable3,
.tds_title,
.rg-commodity-heading,
.trend-signal,
.round-action,
.main table.heading,
.main table.heading td,
.main table.pageHeaders,
.main table.pageHeaders th,
.ui-bar-b,
.ui-btn-b {
    background-color: var(--sw-rose-500) !important;
    background-image: none !important;
    border-color: var(--sw-rose-700) !important;
    color: var(--sw-white) !important;
}

.main section[style*="#fef8e8"],
.main section[style*="#FEF8E8"],
.main [style*="background:#FDEC98"],
.main [style*="background: #FDEC98"],
.main [style*="background-color:#FDEC98"],
.main [style*="background-color: #FDEC98"],
.main [style*="background:#F8DE7A"],
.main [style*="background: #F8DE7A"],
.main [style*="background:#FDEB95"],
.main [style*="background: #FDEB95"],
.main [style*="background:#EFD06B"],
.main [style*="background: #EFD06B"],
.main [style*="background:#D3A93F"],
.main [style*="background: #D3A93F"],
.main [style*="background:#CC9B4F"],
.main [style*="background: #CC9B4F"],
.main [style*="background:#C29125"],
.main [style*="background: #C29125"],
.main [style*="background:#B68012"],
.main [style*="background: #B68012"],
.main [style*="background:#fed438"],
.main [style*="background: #fed438"],
.ui-content [style*="#FDEC98"],
.ui-content [style*="#F8DE7A"],
.ui-content [style*="#D3A93F"],
.ui-content [style*="#CC9B4F"],
.ui-content [style*="#C29125"],
.ui-content [style*="#B68012"] {
    background-color: var(--sw-rose-100) !important;
    background-image: none !important;
    border-color: var(--sw-line) !important;
    color: var(--sw-ink) !important;
}

.main [style*="linear-gradient"][style*="#FDEC98"],
.main [style*="linear-gradient"][style*="#F8DE7A"],
.main [style*="linear-gradient"][style*="#FDEB95"],
.main [style*="linear-gradient"][style*="#EFD06B"],
.main [style*="linear-gradient"][style*="#D3A93F"],
.main [style*="linear-gradient"][style*="#CC9B4F"],
.main [style*="linear-gradient"][style*="#C29125"],
.main [style*="linear-gradient"][style*="#B68012"],
.ui-content [style*="linear-gradient"][style*="#FDEC98"],
.ui-content [style*="linear-gradient"][style*="#CC9B4F"],
.ui-content [style*="linear-gradient"][style*="#C29125"] {
    background: var(--sw-rose-100) !important;
    background-image: none !important;
    color: var(--sw-ink) !important;
}

/* Common legacy classes whose original skins use metallic yellow. */
.price-gradient,
.gold-gradient,
.gradient-gold,
.bg-gold,
.gold-bg,
.theme-background,
.tab.contact_details1,
.main .labelHeadings,
.main legend {
    background-image: none !important;
}

.main legend,
.main .labelHeadings {
    background-color: transparent !important;
    color: var(--sw-rose-700) !important;
}

.main mark,
.ui-content mark {
    background: var(--sw-rose-100) !important;
    color: var(--sw-ink) !important;
}

/* Order-mode selection was the final locally-important gold gradient. */
.swarnora-theme .order-mode-toggle .ui-radio .ui-btn-active,
body .order-mode-toggle .ui-radio .ui-btn-active {
    background: var(--sw-rose-500) !important;
    background-image: none !important;
    border-color: var(--sw-rose-700) !important;
    color: var(--sw-white) !important;
}

@media (max-width: 575px) {
    #footer > section.section {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #footer .col-12 {
        margin-top: 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Preserve distinct transaction intent on order-entry screens. */
#marketSellButton,
#pendingSellButton,
#marketSellButton.ui-btn,
#pendingSellButton.ui-btn {
    background: #b42336 !important;
    background-image: none !important;
    border-color: #861b2a !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

#marketBuyButton,
#pendingBuyButton,
#marketBuyButton.ui-btn,
#pendingBuyButton.ui-btn {
    background: #165f9e !important;
    background-image: none !important;
    border-color: #104875 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

#marketSellButton:hover,
#marketSellButton:focus,
#pendingSellButton:hover,
#pendingSellButton:focus {
    background: #861b2a !important;
    color: #ffffff !important;
}

#marketBuyButton:hover,
#marketBuyButton:focus,
#pendingBuyButton:hover,
#pendingBuyButton:focus {
    background: #104875 !important;
    color: #ffffff !important;
}

/* ============================================================
   LIVERATES-STYLE TABLES + TEXT/BACKGROUND NORMALISATION
   Gives every page (root and www) the rate-card table look used
   on Liverates.html, and repairs legacy light-on-dark markup.
   ============================================================ */

/* --- Card shell for data tables ------------------------------ */
.main table.tablestyle,
.main table.bnkdetails,
.main table.rateTable,
.main table.table_answer,
.main table.tt_333,
.main #gvData_Newss,
.ui-content table.tablestyle,
#gvData,
#gvData_silver,
#gvData_Unfix {
    width: 100% !important;
    background: var(--sw-white) !important;
    background-image: none !important;
    border: 1px solid var(--sw-line) !important;
    border-radius: var(--sw-radius) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: var(--sw-shadow) !important;
    overflow: hidden;
    color: var(--sw-ink) !important;
}

/* Header rows of data tables read as the rose band from Liverates. */
.main table.tablestyle > thead th,
.main table.rateTable > thead th,
.ui-content table.tablestyle > thead th,
#gvData > thead th,
#gvData_silver > thead th,
table.pageHeaders th,
#tblHeader th {
    padding: 12px 14px !important;
    background: var(--sw-rose-500) !important;
    background-image: none !important;
    color: var(--sw-white) !important;
    font-weight: 800 !important;
    text-align: center;
    text-shadow: none !important;
    border: 0 !important;
}

table.pageHeaders,
#tblHeader {
    background: var(--sw-rose-500) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: var(--sw-radius) var(--sw-radius) 0 0 !important;
    overflow: hidden;
}

table.pageHeaders td,
#tblHeader td {
    background: transparent !important;
    color: var(--sw-white) !important;
}

/* Hairline row separators, matching the Liverates product rows. */
.main table.tablestyle > tbody > tr > td,
.main table.bnkdetails > tbody > tr > td,
.main table.rateTable > tbody > tr > td,
.ui-content table.tablestyle > tbody > tr > td {
    padding: 13px 14px !important;
    background: var(--sw-surface) !important;
    border-top: 1px solid var(--sw-line) !important;
    border-bottom: 0 !important;
    color: var(--sw-ink) !important;
}

.main table.tablestyle > tbody > tr:first-child > td,
.main table.bnkdetails > tbody > tr:first-child > td,
.ui-content table.tablestyle > tbody > tr:first-child > td {
    border-top: 0 !important;
}

/* --- Legacy gold gradients and dark fills become rose -------- */
.main [style*="linear-gradient"][style*="#CC9B4F"],
.main [style*="linear-gradient"][style*="#C29125"],
.main [style*="linear-gradient"][style*="#FDEC98"],
.main [style*="linear-gradient"][style*="#D3A93F"],
.main [style*="background:#262626"],
.main [style*="background: #262626"],
.main [style*="background-color:#262626"] {
    background: var(--sw-rose-100) !important;
    background-image: none !important;
    color: var(--sw-ink) !important;
}

/* --- Message cards (Message.html, built by Message_News.js) --- */
#gvData_Newss table.boxx {
    width: 100% !important;
    margin: 0 0 18px !important;
    background: var(--sw-white) !important;
    border: 1px solid var(--sw-line) !important;
    border-radius: var(--sw-radius) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: var(--sw-shadow) !important;
    overflow: hidden;
}

#gvData_Newss table.boxx tr,
#gvData_Newss table.boxx tr[style] {
    background: transparent !important;
    border: 0 !important;
    color: var(--sw-ink) !important;
}

#gvData_Newss table.boxx td,
#gvData_Newss table.boxx td.paddingg,
#gvData_Newss table.boxx td[style] {
    background: var(--sw-surface) !important;
    background-image: none !important;
    color: var(--sw-ink) !important;
    text-align: left;
}

#gvData_Newss table.boxx tr.timeee td,
#gvData_Newss table.boxx tr.timeee td[style] {
    background: var(--sw-rose-100) !important;
    background-image: none !important;
    border-top: 1px solid var(--sw-line) !important;
    color: var(--sw-rose-700) !important;
    font-style: normal !important;
    text-align: right;
}

/* --- Booking desk / bank detail panels ----------------------- */
.css_bkdesk {
    margin-bottom: 16px;
}

table.css_bkdesk1 {
    width: 100%;
    background: var(--sw-white) !important;
    border: 1px solid var(--sw-line) !important;
    border-radius: var(--sw-radius) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: var(--sw-shadow) !important;
    overflow: hidden;
    color: var(--sw-ink) !important;
}

table.css_bkdesk1 td,
table.css_bkdesk1 td[style],
table.css_bkdesk1 p,
table.bnkdetails td,
table.bnkdetails span {
    background: transparent !important;
    color: var(--sw-ink) !important;
}

table.css_bkdesk1 strong[style],
table.bnkdetails strong[style] {
    display: inline-block;
    padding: 8px 18px !important;
    background: var(--sw-rose-500) !important;
    background-image: none !important;
    border-radius: 999px;
    color: var(--sw-white) !important;
}

#gvDataBankDetails,
.rg-bank-details-panel {
    color: var(--sw-ink) !important;
}

.rg-bank-details-panel .center-message {
    background: var(--sw-white) !important;
    border: 1px solid var(--sw-line) !important;
    color: var(--sw-ink) !important;
}

/* --- Order / trade tables (Trades.htm, Orders.htm) -----------
   Chrome only. Row cells keep their inline blue (buy) and red
   (sell) fills with white text, which is a deliberate signal.  */
#gvData,
#gvData[style] {
    color: var(--sw-ink) !important;
}

#gvData > tbody > tr > td {
    border-bottom-color: var(--sw-line) !important;
}

/* Keep white text where a strong semantic fill is present. */
[style*="background-color:blue"],
[style*="background-color: blue"],
[style*="background-color:red"],
[style*="background-color: red"],
[style*="background:red"],
[style*="background: red"],
[style*="background-color:green"],
[style*="background-color: green"],
[bgcolor="red"],
[bgcolor="green"],
[bgcolor="blue"] {
    color: var(--sw-white) !important;
}

/* --- Repair invisible light text on the ivory background ----- */
.main [style*="color:#fff"]:not([style*="background-color:blue"]):not([style*="background-color:red"]):not([style*="background:red"]):not([style*="background-color:green"]),
.main [style*="color: #fff"]:not([style*="background-color:blue"]):not([style*="background-color:red"]):not([style*="background:red"]):not([style*="background-color:green"]),
.main [style*="color:#FFF"]:not([style*="background-color:blue"]):not([style*="background-color:red"]):not([style*="background:red"]),
.main [style*="color:white"]:not([style*="background-color:blue"]):not([style*="background-color:red"]):not([style*="background:red"]):not([style*="background-color:green"]),
.main [style*="color: white"]:not([style*="background-color:blue"]):not([style*="background-color:red"]):not([style*="background:red"]):not([style*="background-color:green"]),
.main [style*="color:#f0ffff"],
.main [style*="color:#fff7d8"],
.main [style*="color:#d3bb6c"],
.main [style*="color:#FFD700"],
.ui-content [style*="color:#fff"]:not([style*="background-color:blue"]):not([style*="background-color:red"]),
.ui-content [style*="color: #fff"]:not([style*="background-color:blue"]):not([style*="background-color:red"]) {
    color: var(--sw-ink) !important;
}

/* Preserve up/down rate signalling. */
.main [style*="color:#00D600"],
.main [style*="color:green"],
.main [style*="color: green"],
#gvData span.sell.rate-high,
#gvData_silver span.sell.rate-high {
    color: #1f7a45 !important;
}

.main [style*="color:red"]:not([style*="background-color:red"]):not([style*="background:red"]),
.main [style*="color: red"]:not([style*="background-color:red"]):not([style*="background:red"]),
#gvData span.sell.rate-low,
#gvData_silver span.sell.rate-low {
    color: #b42336 !important;
}

/* --- Legacy live-rate cards on non-Liverates pages ----------- */
table.goldd,
table.goldd1,
table.goldd2,
table.goldd3 {
    background: var(--sw-white) !important;
    background-image: none !important;
    border: 1px solid var(--sw-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--sw-shadow) !important;
}

table.goldd td,
table.goldd1 td,
table.goldd2 td,
table.goldd3 td,
span.top5span,
span.top55span,
span.sell,
span.bloc_GS,
td.sell {
    background: transparent !important;
    color: var(--sw-ink) !important;
}

span.top5sell,
span.buy_sell_label {
    color: var(--sw-rose-700) !important;
}

table.heading td span,
.rg-commodity-heading {
    color: var(--sw-white) !important;
}

table.res_mob_font_width,
#gvData table.res_mob_font_width,
#gvData_silver table.res_mob_font_width {
    background: var(--sw-surface) !important;
    border-bottom: 1px solid var(--sw-line) !important;
}

/* --- Login / OTP layout tables stay plain -------------------- */
#tblGenerateOTP,
#tblLoginViaOTP,
#tblLogoff,
#tblGenerateOTP td,
#tblLoginViaOTP td,
#tblLogoff td {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--sw-ink) !important;
}

.main .roundCorner,
.ui-content .roundCorner {
    background: var(--sw-rose-100) !important;
    border: 1px solid var(--sw-line) !important;
    border-radius: var(--sw-radius) !important;
}

/* --- jQuery Mobile scroll panes on account pages ------------- */
#wrapper,
#scroller,
.ui-page .ui-content > #wrapper {
    background: transparent !important;
    color: var(--sw-ink) !important;
}

/* --- Responsive table behaviour ------------------------------ */
@media (max-width: 700px) {
    .main table.tablestyle > tbody > tr > td,
    .main table.bnkdetails > tbody > tr > td,
    .ui-content table.tablestyle > tbody > tr > td,
    #gvData_Newss table.boxx td {
        padding: 10px 9px !important;
        font-size: 14px !important;
    }

    .main table.tablestyle > thead th,
    table.pageHeaders th,
    #tblHeader th {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
}

/* ============================================================
   REUSABLE LIVERATES RATE-CARD TABLE
   Same component as Liverates.html, available site-wide so any
   page (root or www) can use the identical markup and classes.
   ============================================================ */
.sw-rate-table,
table.market-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
    table-layout: fixed;
    background: var(--sw-white);
    border: 1px solid rgba(169, 78, 96, 0.16);
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow);
    color: var(--sw-ink);
    font-variant-numeric: tabular-nums;
}

.sw-rate-table td,
table.market-table td {
    vertical-align: middle;
}

.sw-rate-table .ticker-cell,
table.market-table .ticker-cell {
    padding: 0 16px 14px;
    text-align: center;
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-radius);
    background: var(--sw-rose-50);
}

.sw-rate-table .ticker-label,
.sw-rate-table .future-label,
table.market-table .ticker-label,
table.market-table .future-label {
    display: block;
    margin: -1px -17px 12px;
    padding: 9px 10px;
    background: var(--sw-rose-500);
    border-radius: var(--sw-radius) var(--sw-radius) 8px 8px;
    color: var(--sw-white);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sw-rate-table .ticker-price,
table.market-table .ticker-price {
    margin-bottom: 8px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sw-rate-table .ticker-range,
table.market-table .ticker-range {
    display: flex;
    justify-content: center;
    gap: 12px;
    color: var(--sw-muted);
    font-size: 14px;
    font-weight: 700;
}

.sw-rate-table .ticker-range i,
table.market-table .ticker-range i {
    color: var(--sw-rose-300);
    font-style: normal;
}

.sw-rate-table .notice-row td,
table.market-table .notice-row td {
    padding: 10px 18px;
    background: var(--sw-rose-700);
    border-radius: 9px;
    color: var(--sw-white);
    font-size: 15px;
    font-weight: 700;
}

.sw-rate-table .section-head td,
table.market-table .section-head td {
    padding: 11px 14px;
    background: var(--sw-rose-500);
    color: var(--sw-white);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sw-rate-table .section-head td:first-child,
table.market-table .section-head td:first-child {
    border-radius: 9px 0 0 9px;
}

.sw-rate-table .section-head td:last-child,
table.market-table .section-head td:last-child {
    border-radius: 0 9px 9px 0;
}

.sw-rate-table .product-row td,
table.market-table .product-row td {
    padding: 15px 14px;
    background: var(--sw-surface);
    border-top: 1px solid var(--sw-line);
    color: var(--sw-ink);
    font-size: 18px;
    font-weight: 700;
}

.sw-rate-table .product-row:last-child td,
table.market-table .product-row:last-child td {
    border-bottom: 1px solid var(--sw-line);
}

.sw-rate-table .product-row td:first-child,
table.market-table .product-row td:first-child {
    border-left: 1px solid var(--sw-line);
}

.sw-rate-table .product-row td:last-child,
table.market-table .product-row td:last-child {
    border-right: 1px solid var(--sw-line);
}

.sw-rate-table .rate-time,
table.market-table .rate-time {
    display: block;
    margin-top: 4px;
    color: var(--sw-muted);
    font-size: 12px;
    font-weight: 500;
}

.sw-rate-table .buy,
.sw-rate-table .sell,
table.market-table .buy,
table.market-table .sell {
    text-align: right;
    white-space: nowrap;
}

.sw-rate-table .sell,
table.market-table .sell {
    color: var(--sw-rose-700);
}

.sw-rate-table .future-cell,
table.market-table .future-cell {
    padding: 0 18px 16px;
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-radius);
    background: var(--sw-rose-50);
}

.sw-rate-table .future-grid,
table.market-table .future-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    text-align: center;
}

.sw-rate-table .future-side span,
table.market-table .future-side span {
    display: block;
    margin-bottom: 4px;
    color: var(--sw-gold);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.sw-rate-table .future-side strong,
table.market-table .future-side strong {
    font-size: 28px;
}

.sw-rate-table .future-lowhigh,
table.market-table .future-lowhigh {
    grid-column: 1 / -1;
    color: var(--sw-muted);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .sw-rate-table,
    table.market-table {
        border-spacing: 5px;
    }

    .sw-rate-table .ticker-cell,
    table.market-table .ticker-cell {
        padding: 0 5px 10px;
    }

    .sw-rate-table .ticker-label,
    table.market-table .ticker-label {
        margin: -1px -6px 9px;
        padding: 7px 3px;
        font-size: 10px;
    }

    .sw-rate-table .ticker-price,
    table.market-table .ticker-price {
        font-size: 17px;
    }

    .sw-rate-table .ticker-range,
    table.market-table .ticker-range {
        gap: 4px;
        font-size: 10px;
    }

    .sw-rate-table .notice-row td,
    table.market-table .notice-row td {
        font-size: 12px;
    }

    .sw-rate-table .section-head td,
    table.market-table .section-head td {
        padding: 9px 7px;
        font-size: 12px;
    }

    .sw-rate-table .product-row td,
    table.market-table .product-row td {
        padding: 12px 7px;
        font-size: 14px;
    }

    .sw-rate-table .product-row td:first-child,
    table.market-table .product-row td:first-child {
        width: 58%;
    }

    .sw-rate-table .future-cell,
    table.market-table .future-cell {
        padding: 0 7px 11px;
    }

    .sw-rate-table .future-label,
    table.market-table .future-label {
        margin: -1px -8px 10px;
        font-size: 11px;
    }

    .sw-rate-table .future-side strong,
    table.market-table .future-side strong {
        font-size: 15px;
    }

    .sw-rate-table .future-lowhigh,
    table.market-table .future-lowhigh {
        font-size: 10px;
    }
}

/* Header cells sit on the rose band, so they keep white text even
   when legacy markup carries an inline light colour. Declared last
   so it wins over the light-text repair rules above. */
.main table th,
.main table th[style],
.main table.tablestyle > thead th,
.main table.pageHeaders th,
.main table.pageHeaders td,
.main #tblHeader th,
.main #tblHeader td,
.main #gvData > thead th,
.main #gvData_silver > thead th,
.ui-content table th,
.ui-content table th[style],
table.pageHeaders th[style],
#tblHeader th[style],
.main table.heading td span,
.main .rg-commodity-heading,
.main .rg-commodity-heading > div,
.sw-rate-table .section-head td,
.sw-rate-table .notice-row td,
.sw-rate-table .ticker-label,
.sw-rate-table .future-label,
table.market-table .section-head td,
table.market-table .notice-row td,
table.market-table .ticker-label,
table.market-table .future-label {
    color: var(--sw-white) !important;
}

/* ============================================================
   FINAL LIGHT-CANVAS GUARANTEE
   The legacy Parth Bullion layer uses higher-specificity dark selectors.
   Keep its layout, but remap every shared surface to the supplied
   Swarrnora logo palette so no page falls back to black.
   ============================================================ */
:root {
    --parthbullion-bg: var(--sw-ivory);
    --parthbullion-bg-raised: var(--sw-white);
    --parthbullion-bg-panel: var(--sw-rose-50);
    --parthbullion-header: var(--sw-ivory);
    --parthbullion-nav: var(--sw-rose-500);
    --parthbullion-footer: var(--sw-rose-700);
    --parthbullion-gold: var(--sw-rose-500);
    --parthbullion-gold-bright: var(--sw-rose-700);
    --parthbullion-gold-muted: var(--sw-rose-300);
    --parthbullion-cream: var(--sw-ivory);
    --parthbullion-text: var(--sw-ink);
    --parthbullion-muted-text: var(--sw-muted);
    --parthbullion-border: var(--sw-line);
}

html,
body,
body > .body,
body > .body > .main,
body > .body > section,
body > .body > main,
body > .body > .page-shell,
body > .body > .ui-page,
.ui-mobile-viewport,
.ui-overlay-a {
    background-color: var(--sw-ivory) !important;
    background-image: none !important;
    color: var(--sw-ink) !important;
}



body > .body > #header .naviRow,
body > .body > #header #navhead,
body > .body > #header .header-nav,
body > .body > #header .header-nav-main,
body > .body > #header .header-nav-main nav,
body > .body > #header #mainNav,
body > .body > #header #mainNav > li,
body > .body > #header #mainNav > li > a,
body > .body > #header #mainNav > li > .dropdown-item {
    background-color: var(--sw-rose-500) !important;
    background-image: none !important;
}

body > .body > #header #mainNav > li > a,
body > .body > #header #mainNav > li > .dropdown-item,
body > .body > #header .header-nav-main nav > ul > li > a {
    color: var(--sw-white) !important;
}

body > .body > .main h1,
body > .body > .main h2,
body > .body > .main h3,
body > .body > .main h4,
body > .body > .main h5,
body > .body > .main h6 {
    color: var(--sw-rose-700) !important;
}

body > .body > .main p,
body > .body > .main li,
body > .body > .main label,
body > .body > .main .ui-body-inherit {
    color: var(--sw-ink) !important;
}

body > .body > #footer,
body > .body > #footer > section.section,
body > .body > #footer .footer-copyright {
    background-color: var(--sw-rose-700) !important;
    background-image: none !important;
    color: var(--sw-white) !important;
}

body > .body > #footer .icon-box {
    background: transparent !important;
    border-color: rgba(255,255,255,.28) !important;
}

body > .body > #footer .icon-box-icon i,
body > .body > #footer .icon-box-info-title h3,
body > .body > #footer .icon-box-info p,
body > .body > #footer .footer-copyright p,
body > .body > #footer .footer-copyright span,
body > .body > #footer a {
    color: var(--sw-white) !important;
}

/* Final footer layout isolation. Legacy footer columns must not control the
   dedicated address section. Keep this block after all shared footer rules. */
body > .body > #footer {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    clear: both !important;
    overflow: visible !important;
}

body > .body > #footer > .footer-address-section {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 32px 20px 36px !important;
    clear: both !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    background: transparent !important;
}

body > .body > #footer > .footer-address-section > .container {
    display: block !important;
    position: static !important;
    float: none !important;
    width: min(1140px, calc(100% - 32px)) !important;
    max-width: 1140px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body > .body > #footer .footer-address-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body > .body > #footer .footer-address-card,
body > .body > #footer .footer-address-card span {
    opacity: 1 !important;
    visibility: visible !important;
}

body > .body > #footer .footer-address-card span {
    color: var(--sw-ink) !important;
}

@media (max-width: 640px) {
    body > .body > #footer > .footer-address-section {
        padding: 24px 14px 28px !important;
    }

    body > .body > #footer .footer-address-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 991px) {
    body > .body > #header .header-nav-main nav {
        background: var(--sw-white) !important;
        border-color: var(--sw-line) !important;
    }
    body > .body > #header #mainNav,
    body > .body > #header #mainNav > li,
    body > .body > #header #mainNav > li > a,
    body > .body > #header #mainNav > li > .dropdown-item {
        background: var(--sw-white) !important;
        color: var(--sw-ink) !important;
    }
}

/* Verified Manoj Jewellers business/contact components. */
#footer .sw-business-footer {
    padding: 28px 15px 24px !important;
}

#footer .sw-business-footer .row {
    align-items: flex-start;
}

#footer .sw-business-footer .icon-box {
    height: 100%;
    margin: 0;
}

#footer .sw-business-footer .icon-box-info-title h3 {
    line-height: 1.35;
}

#footer .sw-business-footer p {
    margin: 8px 0 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

#footer .sw-contact-line {
    display: block;
    margin-bottom: 9px;
    color: var(--sw-white) !important;
}

#footer .sw-contact-line:last-child {
    margin-bottom: 0;
}

.sw-contact-grid,
.sw-booking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.sw-booking-grid {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 54px;
}

.sw-contact-card {
    min-width: 0;
    padding: 24px;
    background: var(--sw-white);
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow);
    color: var(--sw-ink);
}

.sw-contact-card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    background: var(--sw-rose-100);
    border-radius: 50%;
    color: var(--sw-rose-700);
    font-size: 22px;
}

.sw-office-locations .sw-contact-card__icon {
    background: transparent !important;
    background-image: none !important;
    border-radius: 0;
    box-shadow: none !important;
}

.sw-contact-card h3 {
    margin: 0 0 10px;
    color: var(--sw-rose-700) !important;
    font-size: 18px;
    line-height: 1.35;
}

.sw-office-locations .sw-contact-card h3 {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.sw-contact-card p {
    margin: 0;
    color: var(--sw-ink) !important;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.sw-office-locations .sw-contact-card p,
.sw-office-locations .sw-contact-card p a {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.sw-contact-form-section .google-map.google-map-burst-height {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.sw-contact-form-section .sw-contact-details-panel,
.sw-contact-form-section .sw-contact-details-panel > .row,
.sw-contact-form-section .sw-contact-details-panel .sw-contact-grid,
.sw-contact-form-section .sw-contact-details-panel .sw-contact-card,
.sw-contact-form-section .sw-contact-details-panel .sw-contact-card__icon,
.sw-contact-form-section .sw-contact-details-panel h2,
.sw-contact-form-section .sw-contact-details-panel h3,
.sw-contact-form-section .sw-contact-details-panel p,
.sw-contact-form-section .sw-contact-details-panel a {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.sw-contact-form-section .sw-contact-details-panel .sw-contact-card__icon {
    border-radius: 0;
}

.sw-contact-card a {
    color: var(--sw-rose-700) !important;
    font-weight: 600;
}

.sw-contact-card .sw-contact-line {
    display: block;
    margin-bottom: 10px;
    color: var(--sw-ink) !important;
}

.sw-contact-card .sw-contact-line:last-child {
    margin-bottom: 0;
}

#footer .sw-footer-account-actions {
    padding: 14px 20px;
    background: var(--sw-rose-900);
    color: var(--sw-white);
    text-align: center;
}

#footer .sw-footer-account-actions a {
    color: var(--sw-white) !important;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 767px) {
    .sw-contact-grid,
    .sw-booking-grid {
        grid-template-columns: 1fr;
    }

    .sw-contact-card {
        padding: 20px;
    }
}

/* Dual-brand header lockup: both marks centered as one side-by-side group. */
body > .body > #header .header-row.headImg .brand-lockup-row {
    display: grid;
    grid-template-columns: minmax(0, 430px) minmax(0, 320px);
    align-items: center;
    justify-content: center;
    column-gap: clamp(16px, 3vw, 40px);
    width: 100%;
    margin: 0;
}

body > .body > #header .header-row.headImg .brand-lockup-row .brand-lockup-spacer {
    display: none !important;
}

body > .body > #header .header-row.headImg > .container {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body > .body > #header .header-row.headImg .brand-lockup-row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-right: 12px;
    padding-left: 12px;
}

body > .body > #header .header-row.headImg .brand-lockup-row > .header-brand-column {
    padding-left: 10px;
}

body > .body > #header .header-row.headImg .brand-lockup-row #iconimage.header-brand-column {
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    text-align: left;
}

body > .body > #header .header-row.headImg .brand-lockup-row #iconimage.header-brand-column .header-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

body > .body > #header .header-row.headImg .brand-lockup-row #iconimage.header-brand-column .LogoImgWidth1 {
    width: min(460px, 100%) !important;
    height: 116px !important;
    max-width: 460px !important;
    max-height: 116px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

body > .body > #header .header-row.headImg .brand-lockup-row .parent-brand-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body > .body > #header .header-row.headImg .brand-lockup-row .parent-brand-column::before {
    content: "A DIVISION OF";
    display: block;
    margin-bottom: 4px;
    color: #1b1b1b;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
    text-align: center;
}

body > .body > #header .header-row.headImg .brand-lockup-row .parent-brand-logo {
    display: block;
    width: min(300px, 100%);
    height: 116px;
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    body > .body > #header .header-row.headImg .brand-lockup-row {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        column-gap: 8px;
    }

    body > .body > #header .header-row.headImg .brand-lockup-row #iconimage.header-brand-column .LogoImgWidth1 {
        width: min(230px, 100%) !important;
        height: 80px !important;
        max-width: 230px !important;
        max-height: 80px !important;
    }

    body > .body > #header .header-row.headImg .brand-lockup-row .parent-brand-logo {
        width: min(190px, 100%);
        height: 80px;
    }

    body > .body > #header .header-row.headImg .brand-lockup-row .parent-brand-column::before {
        margin-bottom: 3px;
        font-size: 9px;
        letter-spacing: 0.14em;
    }
}

@media (max-width: 380px) {
    body > .body > #header .header-row.headImg .brand-lockup-row > [class*="col-"] {
        padding-right: 6px;
        padding-left: 6px;
    }

    body > .body > #header .header-row.headImg .brand-lockup-row #iconimage.header-brand-column .LogoImgWidth1 {
        width: 100% !important;
        height: 72px !important;
        max-width: 190px !important;
        max-height: 72px !important;
    }

    body > .body > #header .header-row.headImg .brand-lockup-row .parent-brand-logo {
        height: 78px;
    }
}

/* Final light-gold canvas: deliberately last so legacy guarantees cannot hide it. */
body,
body.ui-mobile-viewport {
    background-color: var(--sw-ivory) !important;
    background-image: url("../assets/images/swarrnora-light-gold-background.png") !important;
    background-repeat: repeat-y !important;
    background-position: top center !important;
    background-size: 100% auto !important;
    background-attachment: fixed !important;
}

body > .body,
body > .body > .main,
body > .body > main,
body > .body > .page-shell,
body > .body > .ui-page,
.ui-mobile-viewport,
.ui-overlay-a {
    background-color: transparent !important;
    background-image: none !important;
}

.btn,
button:not(.header-btn-collapse-nav),
input[type="button"],
input[type="submit"],
.ui-btn,
.rg-tab-btn,
.round-action,
.main table th,
.ui-content table th,
table.heading,
.rg-commodity-heading,
.ticker,
.marquee {
    background-color: var(--sw-rose-100) !important;
    background-image: none !important;
    border-color: var(--sw-rose-300) !important;
    color: var(--sw-ink) !important;
}

body > .body > #header #mainNav > li > a,
body > .body > #header #mainNav > li > .dropdown-item,
body > .body > #header .header-nav-main nav > ul > li > a,
.main table th,
.ui-content table th,
table.heading,
.rg-commodity-heading,
.marquee p,
.marquee a,
.marquee span,
.marquee div,
.ticker span {
    color: var(--sw-ink) !important;
}

body > .body > #footer,
body > .body > #footer > section.section,
body > .body > #footer .footer-copyright {
    background-color: var(--sw-rose-100) !important;
    background-image: none !important;
    color: var(--sw-ink) !important;
}

body > .body > #footer .icon-box-icon i,
body > .body > #footer .icon-box-info-title h3,
body > .body > #footer .icon-box-info p,
body > .body > #footer .footer-copyright p,
body > .body > #footer .footer-copyright span,
body > .body > #footer a,
#footer p,
#footer span {
    color: var(--sw-ink) !important;
}

/* True cascade endpoint: keep the body artwork continuous through main canvases. */
html body > .body,
html body > .body > .main,
html body > .body > main,
html body > .body > .main > section,
html body > .body > main > section {
    background-color: var(--sw-ivory) !important;
    background-image: url("../assets/images/swarrnora-light-gold-background.png") !important;
    background-repeat: repeat-y !important;
    background-position: top center !important;
    background-size: 100% auto !important;
    background-attachment: fixed !important;
    box-shadow: none !important;
}

html body.ui-mobile-viewport .ui-page,
html body.ui-mobile-viewport .ui-page-theme-a,
html body.ui-mobile-viewport .ui-panel-wrapper,
html body.ui-mobile-viewport .ui-content,
html body > .body > .main .sw-office-locations .sw-contact-card,
html body > .body > .main .ui-page,
html body > .body > .main .ui-page-theme-a,
html body > .body > .main .ui-panel-wrapper,
html body > .body > .main .ui-content {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Match the shared header canvas to Live Rates on every outer and www page. */
html body > .body > #header,
html body > .body > #header .header-body,
html body > .body > #header .header-top,
html body > .body > #header .header-top-container,
html body > .body > #header .header-conta30\.iner,
html body > .body > #header .header-container,
html body > .body > #header .header-row.headImg,
html body > .body > #header .header-row.headImg > .container,
html body > .body > #header .header-row.headImg .brand-lockup-row,
html body > .body > #header .header-row.headImg #iconimage,
html body > .body > #header .header-row.headImg .header-brand-link,
html body > .body > #header .header-row.headImg .parent-brand-column {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body > .body > #header .header-row.naviRow {
    background: linear-gradient(135deg, #fffdf5 0%, #fbf2d7 38%, #f3dfaa 72%, #e7c979 100%) !important;
    background-image: linear-gradient(135deg, #fffdf5 0%, #fbf2d7 38%, #f3dfaa 72%, #e7c979 100%) !important;
    border-color: var(--sw-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body > .body > #header .header-row.naviRow #navhead,
html body > .body > #header .header-row.naviRow .header-column,
html body > .body > #header .header-row.naviRow .header-nav,
html body > .body > #header .header-row.naviRow .header-nav-main,
html body > .body > #header .header-row.naviRow .header-nav-main nav,
html body > .body > #header .header-row.naviRow #mainNav,
html body > .body > #header .header-row.naviRow #mainNav > li,
html body > .body > #header .header-row.naviRow #mainNav > li > a,
html body > .body > #header .header-row.naviRow #showlogin a {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body > .body > #header .header-row.naviRow #mainNav > li > a,
html body > .body > #header .header-row.naviRow #showlogin a {
    color: var(--sw-rose-900) !important;
}

/* Match every runtime footer layer to the Live Rates footer. */
html body > .body > #footer,
html body > .body > #footer > .footer-address-section,
html body > .body > #footer > .footer-copyright,
html body > .body > #footer > .sw-footer-account-actions {
    background-color: var(--sw-rose-100) !important;
    background-image: none !important;
    color: var(--sw-ink) !important;
}

html body > .body > #footer > .footer-address-section {
    background: transparent !important;
}

html body > .body > #footer > .footer-copyright,
html body > .body > #footer > .sw-footer-account-actions {
    border-top: 1px solid var(--sw-line) !important;
}

/* Shared contact-details message modal. */
.sw-contact-modal-trigger {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9997;
    min-height: 44px;
    padding: 10px 16px;
    background: var(--sw-rose-700);
    border: 1px solid var(--sw-rose-900);
    border-radius: 12px;
    color: var(--sw-white);
    font: 700 14px/1.2 "Montserrat", Arial, sans-serif;
    box-shadow: 0 8px 22px rgba(81, 56, 13, .22);
    cursor: pointer;
}

.sw-contact-modal-trigger:focus-visible,
.sw-contact-modal__close:focus-visible,
.sw-contact-modal a:focus-visible {
    outline: 3px solid var(--sw-gold);
    outline-offset: 3px;
}

.sw-contact-modal[hidden] {
    display: none !important;
}

.sw-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.sw-contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 31, 12, .62);
}

.sw-contact-modal__panel {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    padding: clamp(24px, 4vw, 38px);
    background-color: var(--sw-ivory);
    background-image: url("../assets/images/swarrnora-light-gold-background.png");
    background-position: top center;
    background-size: 100% auto;
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-radius);
    box-shadow: 0 24px 70px rgba(45, 31, 12, .34);
    color: var(--sw-ink);
}

.sw-contact-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--sw-rose-900);
    font: 400 32px/1 Arial, sans-serif;
    cursor: pointer;
}

.sw-contact-modal h2,
.sw-contact-modal h3,
.sw-contact-modal p,
.sw-contact-modal address,
.sw-contact-modal li,
.sw-contact-modal a,
.sw-contact-modal span {
    color: var(--sw-ink) !important;
    text-shadow: none !important;
}

.sw-contact-modal h2 {
    margin: 0 42px 6px 0;
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.2;
}

.sw-contact-modal__intro {
    margin: 0 0 18px;
    color: var(--sw-muted) !important;
}

.sw-contact-modal__address {
    margin: 0 0 24px;
    font-style: normal;
    line-height: 1.65;
}

.sw-contact-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.sw-contact-modal h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.sw-contact-modal ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sw-contact-modal li,
.sw-contact-modal__grid p {
    margin: 0 0 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sw-contact-modal li span {
    display: block;
    color: var(--sw-muted) !important;
    font-size: 13px;
}

.sw-contact-modal a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sw-contact-modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .sw-contact-modal {
        padding: 12px;
    }

    .sw-contact-modal__panel {
        max-height: calc(100vh - 24px);
        padding: 26px 20px;
    }

    .sw-contact-modal__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sw-contact-modal-trigger {
        right: 12px;
        bottom: 12px;
    }
}

/* Permanent contact details replacing the retired popup and legacy cards. */
.sw-contact-grid.sw-contact-grid--three,
.sw-booking-contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sw-contact-number-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sw-contact-number-list li {
    margin: 0 0 10px;
    color: var(--sw-ink) !important;
    line-height: 1.4;
}

.sw-contact-number-list li:last-child {
    margin-bottom: 0;
}

.sw-contact-number-list strong,
.sw-contact-number-list span {
    display: block;
    color: var(--sw-ink) !important;
}

.sw-contact-number-list span {
    color: var(--sw-muted) !important;
    font-size: 13px;
}

.sw-booking-contact-grid {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 54px !important;
    padding: 0 !important;
}

#footer .sw-footer-contact-section {
    padding: 30px 20px 34px;
}

#footer .sw-footer-contact-section > .container {
    width: min(1180px, 100%);
    max-width: 1180px;
}

html body > .body > #footer .sw-footer-contact-section .footer-address-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

#footer .sw-footer-contact-section .footer-address-card {
    min-height: 210px;
    padding: 22px 16px;
}

#footer .footer-contact-card p {
    margin: 0 0 8px;
    color: var(--sw-ink) !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#footer .footer-contact-card a {
    color: var(--sw-rose-900) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#footer .footer-contact-card .sw-contact-number-list {
    width: 100%;
    text-align: center;
}

#footer .sw-footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: min(920px, 100%);
    margin: 0 auto;
    text-align: left;
}

#footer .sw-footer-contact-heading {
    margin: 28px 0 16px;
    color: var(--sw-ink) !important;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

#footer .sw-footer-contact-grid > address,
#footer .sw-footer-contact-grid > section {
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    font-style: normal;
}

#footer .sw-footer-contact-grid > address > strong,
#footer .sw-footer-contact-grid > section > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--sw-rose-900) !important;
    font-size: 15px;
    font-weight: 800;
}

#footer .sw-footer-contact-grid address span,
#footer .sw-footer-contact-grid p {
    display: block;
    margin: 0 0 7px;
    color: var(--sw-ink) !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#footer .sw-footer-contact-grid a {
    color: var(--sw-rose-900) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#footer .sw-footer-contact-grid .sw-contact-number-list li {
    margin-bottom: 7px;
}

@media (max-width: 991px) {
    .sw-contact-grid.sw-contact-grid--three,
    .sw-booking-contact-grid,
    #footer .sw-footer-contact-grid {
        grid-template-columns: 1fr;
    }

    #footer .sw-footer-contact-grid {
        max-width: 620px;
        text-align: center;
    }

}

@media (min-width: 641px) and (max-width: 767px) {
    html body > .body > #footer .sw-footer-contact-section .footer-address-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    html body > .body > #footer .sw-footer-contact-section .footer-address-grid {
        grid-template-columns: 1fr !important;
    }

    #footer .sw-footer-contact-section .footer-address-card {
        min-height: 0;
    }
}

html body > .body > #footer > .sw-footer-account-actions a,
html body > .body > #footer > .footer-copyright p,
html body > .body > #footer > .footer-copyright span {
    color: var(--sw-ink) !important;
}

/* Live Rates market update: light champagne header matching the site theme. */
body.live-rates-reference-page .theme-modal .modal-header {
    border-bottom: 1px solid rgba(157, 112, 32, 0.2) !important;
    background: linear-gradient(135deg, #fffdf7 0%, #fbf3dc 42%, #f4e3b7 74%, #ead18f 100%) !important;
}

body.live-rates-reference-page .theme-modal .modal-title {
    color: var(--sw-rose-900) !important;
}

body.live-rates-reference-page .theme-modal .close {
    background: rgba(128, 90, 22, 0.1) !important;
    color: var(--sw-rose-900) !important;
}

body.live-rates-reference-page .theme-modal .close:hover,
body.live-rates-reference-page .theme-modal .close:focus {
    background: rgba(128, 90, 22, 0.18) !important;
    color: var(--sw-rose-900) !important;
}
