﻿/*********************************************************************************
MVC specific tweaks on top of the ZYVINTRA demo theme (layout.css)
Only additions / overrides live here so the demo stylesheets stay untouched.

Palette (mirrors layout.css):
  navy   #01235b / #011a44 / #001333
  gold   #b19943 / #ca8b26 / #d1b657
  cream  #fff4e5 -> #f7faff gradient, hairline #eddcc8
***************/

/* The off-canvas drawers are parked off-screen with right:-300px
   (.mb-fltr-col) which widens the document on phones. Clip it. */
html, body {
    overflow-x: hidden;
}

/*********************************************************************************
Decorative inset borders must not eat clicks

layout.css draws the thin gold frame inside the login / address / profile
panels with an absolutely positioned :before that spans the whole box
(top/left/right/bottom:10px). Positioned boxes paint above the panel's
in-flow content, so that pseudo-element sat on top of the form and
swallowed every click and tap - the Login button could not be pressed.
The demo never noticed because none of its pages submit anything.

These pseudo-elements are pure decoration, so take them out of hit testing.
***************/
.login-bar .login-col:before,
.cart-row .container-address:before,
.my-account .mbr-prfle .mbr-inf .mbr-inf-col:before,
.othr-inf-row .inf-col:before,
.othr-inf-row .inf-col:after {
    pointer-events: none;
}

/* NOTE: the card's .item-btn row is intentionally left hidden by layout.css,
   exactly as in the demo - adding to the cart happens on the detail page. */

/* empty result states */
.itm-lst-row .itm-lst .no-product,
.cart-row .empty-cart-msg {
    width: 100%;
}
.no-product p {
    display: table;
    margin: 40px auto !important;
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
}
.no-product p span {
    display: block;
    font-size: 0.7em;
    font-weight: normal;
    margin-top: 6px;
}

/* header search results dropdown is toggled from Razor */
.srch-row #srch-result.on {
    display: block;
}
.srch-row .srch-btn {
    cursor: pointer;
}

/* jQuery UI ships sprite backgrounds for the widget states, but the demo never
   included plugins/price-slider/images/* - kill the requests so the price
   filter does not 404 on every page load. */
.range-slider,
.range-slider .ui-widget-header,
.range-slider .ui-slider-handle,
.range-slider .ui-state-default,
.range-slider .ui-state-hover,
.range-slider .ui-state-focus,
.range-slider .ui-state-active,
.range-slider .ui-widget-content {
    background-image: none !important;
}

/* category sidebar - highlight active category */
.itm-lst-row .itm-ct-lst ul li a.active {
    font-weight: 700;
}

/* product detail - keep the demo accordion tidy when the description is CMS html */
.itm-dtls-row .pr_desc .desc-inf p:last-child {
    margin-bottom: 0 !important;
}
.itm-dtls-row .pr_desc .desc-inf img {
    max-width: 100%;
    height: auto;
}
.itm-dtls-row .pr_stock .out {
    color: #c0392b;
}

/* checkout / cart summary extras */
.cart-row .price-lst-smry ul li.vp span.rght {
    color: #01235b;
    font-weight: 700;
}
.cart-row .price-lst-smry .form-group {
    margin-bottom: 12px;
}
.cart-row .dlvry-note {
    background: linear-gradient(45deg, #fff4e5, #f7faff);
    border: 1px solid #eddcc8;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 15px;
}
.cart-row .dlvry-note strong {
    display: block;
}
.cart-row .cpn-msg {
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
}
.cart-row .cpn-msg.ok {
    color: #1e7e34;
}
.cart-row .cpn-msg.err {
    color: #c0392b;
}

/* login / register helpers */
.login-bar .login-col .form-group .field-validation-error,
.login-bar .login-col .text-danger {
    display: block;
    color: #c0392b;
    font-size: 0.85em;
    margin-top: 4px;
}
.login-bar .login-col .btn-sub {
    cursor: pointer;
}
.login-bar .login-col .fo-pass-block {
    position: relative;
}

/* layout.css points the "wishlisted" and "added to cart" states at
   icon-wishlisted.png / icon-success-blck.png, which the demo never shipped.
   Recolour the icons we do have instead of showing a broken image. */
.item a.item_wshlst.wshlsted .icon-wshlst {
    background: url(../img/icon-wishlist.png) center no-repeat !important;
    background-size: 16px !important;
    -webkit-filter: invert(24%) sepia(89%) saturate(3000%) hue-rotate(345deg);
    filter: invert(24%) sepia(89%) saturate(3000%) hue-rotate(345deg);
}
.item a.item_wshlst.wshlsted {
    background: #ffe9e4;
}
/* (the detail page has no wishlist button - it matches the demo exactly) */
.itm-dtls-row a.pr_added_cart .icon-add-cart {
    background: url(../img/icon-cart-wht.png) center no-repeat !important;
    background-size: 18px !important;
}

/*********************************************************************************
Text / policy pages

layout.css strips every margin off h1-h5, p, ul and li, so long-form copy needs
its rhythm put back. Wrap page content in .txt-page.
***************/
.txt-page {
    background: #fff;
    border: 1px solid #eddcc8;
    border-radius: 5px;
    padding: 30px;
}
.txt-page > :first-child {
    margin-top: 0 !important;
}
.txt-page h2,
.txt-page h3,
.txt-page h4,
.txt-page h5,
.txt-page h6 {
    color: #01235b;
    margin: 28px 0 12px !important;
}
.txt-page p {
    margin-bottom: 14px !important;
    text-align: justify;
}
.txt-page ul,
.txt-page ol {
    margin: 0 0 16px 22px !important;
}
.txt-page ul li {
    list-style: disc;
    margin-bottom: 7px !important;
}
.txt-page ol li {
    list-style: decimal;
    margin-bottom: 7px !important;
}
.txt-page hr {
    border-top: 1px solid #eddcc8;
    margin: 18px 0;
}
.txt-page a:not(.btn) {
    color: #b19943 !important;
    text-decoration: underline !important;
}
.txt-page .btn {
    margin-right: 8px;
    margin-bottom: 8px;
}
.txt-page .lead {
    color: #666;
    margin-bottom: 20px !important;
}
.txt-page table {
    width: 100%;
    margin-bottom: 16px;
}
.txt-page img {
    max-width: 100%;
    height: auto;
}
.txt-page .sign {
    margin-top: 26px !important;
    font-weight: 700;
}

/*********************************************************************************
Member area

Full width, like every other page in the demo - navigation for these screens
lives in the header account dropdown, not in a side rail.
***************/
.my-account {
    padding-bottom: 0 !important;
}

.my-account .acc-panel {
    background: #fff;
    border: 1px solid #eddcc8;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 22px;
}
.my-account .acc-panel h5 {
    color: #01235b;
    margin-bottom: 12px !important;
}
.my-account .stat-box {
    background: linear-gradient(45deg, #fff4e5, #f7faff);
    border: 1px solid #eddcc8;
    border-radius: 5px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}
.my-account .stat-box span {
    display: block;
    color: #777;
    font-size: .85em;
    margin-bottom: 4px;
}
.my-account .stat-box strong {
    font-size: 1.5em;
    color: #01235b;
}
.no-record {
    text-align: center;
    color: #999;
    padding: 30px 0 !important;
}

/* PagedList pager (Content/PagedList.css is no longer loaded) */
.pager-row {
    text-align: center;
    margin-top: 15px;
}
.pager-row .pagination {
    margin: 0;
}
.pager-row .pagination > li > a,
.pager-row .pagination > li > span {
    color: #01235b;
}
.pager-row .pagination > .active > a,
.pager-row .pagination > .active > span,
.pager-row .pagination > .active > a:hover,
.pager-row .pagination > .active > span:hover {
    background-color: #01235b;
    border-color: #01235b;
    color: #fff;
}

/* order confirmation */
.order-done {
    text-align: center;
    padding: 10px 0 30px;
}
.done-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 100%;
    background: #e4f6ea;
    color: #1e7e34;
    font-size: 38px;
    margin: 0 auto 18px;
}
.order-done h2 {
    color: #01235b;
    margin-bottom: 8px !important;
}
.order-done p {
    color: #666;
}

/* payment method picker */
.pay-methods {
    border: 1px solid #eddcc8;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}
.pay-methods .pay-method {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #f0e6d6;
    padding: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}
.pay-methods .pay-method:last-child {
    border-bottom: 0;
}
.pay-methods .pay-method .fa {
    color: #b19943;
    margin-right: 8px;
    width: 18px;
}
.pay-methods .pay-method:hover {
    background: #f7faff;
}
.pay-methods .pay-method.active {
    background: #01235b;
    color: #fff;
}
.pay-methods .pay-method.active .fa {
    color: #fff;
}

/* contact cards */
.cnt-card {
    background: #fff;
    border: 1px solid #eddcc8;
    border-top: 4px solid #01235b;
    border-radius: 5px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 25px;
    min-height: 190px;
}
.cnt-card .cnt-icon {
    width: 54px;
    height: 54px;
    line-height: 54px;
    border-radius: 100%;
    background: linear-gradient(45deg, #fff4e5, #f7faff);
    color: #b19943;
    font-size: 22px;
    margin: 0 auto 14px;
}
.cnt-card h4 {
    margin-bottom: 8px !important;
    color: #01235b;
}
.cnt-card p,
.cnt-card a {
    line-height: 22px;
    word-break: break-word;
}
.cnt-card a:hover {
    color: #b19943 !important;
}

/* compliance document tiles */
.doc-tile {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    -webkit-box-shadow: 0px 0px 12px #e7e7e7;
    box-shadow: 0px 0px 12px #e7e7e7;
}
.doc-tile img {
    width: 100%;
    height: 240px;
    object-fit: contain;
}
/* keep the grid stable even when a document image fails to load */
.doc-tile {
    min-height: 262px;
}
.doc-cap {
    display: block;
    text-align: center;
    font-weight: 600;
    margin-bottom: 25px !important;
}

/* two-column info list used on profile / bank / order detail pages */
.info-grid {
    list-style: none;
    margin: 0 !important;
}
.info-grid li {
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0e6d6;
}
.info-grid li:last-child {
    border-bottom: 0;
}
.info-grid .info-label {
    display: inline-block;
    width: 42%;
    color: #777;
}
.info-grid .info-value {
    font-weight: 600;
}

/* generic alert used for server messages */
.alert-line {
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
}
.alert-line.ok {
    background: #e4f6ea;
    border: 1px solid #1e7e34;
    color: #155724;
}
.alert-line.err {
    background: #ffe0da;
    border: 1px solid #c0392b;
    color: #7d1f14;
}

/* layout.css draws the close button as an icon image. Bootstrap markup also puts
   an &times; inside the button, so both showed up side by side - hide the text
   and keep only the icon (aria-label still names the button). */
.modal-dialog .modal-content .close {
    font-size: 0;
    line-height: 0;
    color: transparent;
}
.modal-dialog .modal-content .close > span {
    display: none;
}

/* modal images (popup banner) */
.modal-body img {
    max-width: 100%;
}

/* related products grid on the detail page falls back to a plain grid
   when there are too few items for the carousel */
.pr-related-row .item {
    margin-bottom: 20px;
}

/* product reviews */
.review-item {
    border-bottom: 1px solid #f0e6d6;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.review-item:last-child {
    border-bottom: 0;
}
.review-item .rev-head {
    margin-bottom: 4px !important;
    color: #01235b;
}
.review-item .rev-stars {
    color: #b19943;
    margin-left: 10px;
}

/* member pages use a breadcrumb with no banner image, so the links sit on white */
.breadcrmb.plain .breadcrmb-loc li a {
    color: #0000008c !important;
}
.breadcrmb.plain .breadcrmb-loc li a:after {
    color: #0000008c;
}

/*********************************************************************************
Profile header

layout.css paints the online dot green unconditionally; an id that has never
been activated needs the other colour.
***************/
.my-account .mbr-prfle .mbr-hdr .mbr-status.off {
    color: #b3261e;
}
.my-account .mbr-prfle .mbr-hdr .mbr-status.off:before {
    background: #d42a2a;
}

/*********************************************************************************
KYC screens

These pages are laid out with Bootstrap 5 cards (see bs5-compat.css). Give the
cards the same cream / gold panel treatment the demo uses for .mbr-inf-col so
they sit inside the theme instead of on top of it.
***************/
.kyc-page .card {
    margin-bottom: 22px;
}
.kyc-page .card-header strong {
    color: #01235b;
    text-transform: uppercase;
}
.kyc-page .form-label {
    color: #555;
    margin-bottom: 4px;
}
/* file pickers are taller than the 40px the theme gives .form-control */
.kyc-page input[type=file].form-control {
    height: auto;
    padding: 8px;
    background: #fff;
}
/* the upload panels use .border-secondary .bg-light - keep them on the cream scale */
.kyc-page .border-secondary {
    border-color: #eddcc8 !important;
}
.kyc-page .bg-light {
    background-color: #fbf7f0 !important;
}
.kyc-page .step-indicator span {
    font-weight: 700;
}