/*
 * Nivah — mobile homepage refinements, 17 Nov 2026.
 * Only the Gift filters, Special Pieces image overlay, Payment brands and
 * mobile footer composition are changed; desktop section layouts stay intact.
 */

/* Slightly rounded rectangular action buttons on all viewport sizes.
   Deliberately omit icon-only, floating circular, carousel and wishlist controls. */
:where(.btn, a.btn, button.btn,
       .nv-love-cta-actions a,
       #thoughtful-gifts .nv-love-gifts-tags a,
       #thoughtful-gifts .nv-love-gifts-footer .btn,
       #special-you .nv-special-you-button,
       .nv-payment-shop,
       .nv-expanded-footer .nv-footer-explore,
       .nv-expanded-footer .nv-footer-message>a,
       .nv-expanded-footer .nv-footer-contact-cta,
       .nv-editorial-cta,
       #subscribe-form button,
       .nv-pdp-actions .btn,
       .nv-pdp-add-cart,
       .nv-pdp-whatsapp,
       .nv-pdp-pickup,
       .nv-help-cta,
       .nv-outlet-link) {
  border-radius:6px!important;
}

/* Mobile-only editorial composition */
@media (max-width:700px) {
  /* A reliable 2x2 selection, without the last label orphaned on its own row. */
  #thoughtful-gifts .nv-love-gifts-tags {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    justify-content:stretch;
    gap:9px!important;
    width:100%;
    max-width:480px;
    margin:0 auto 24px;
  }
  #thoughtful-gifts .nv-love-gifts-tags>a {
    display:flex;
    width:100%;
    min-width:0;
    min-height:44px;
    box-sizing:border-box;
    padding:10px 8px;
    text-align:center;
    text-wrap:balance;
    line-height:1.45;
    font-size:clamp(8px,2.4vw,10px);
    letter-spacing:.035em;
    border-radius:6px!important;
  }

  /* Use the image as a true editorial CTA backdrop instead of putting
     an unrelated white text block underneath it. */
  #special-you.nv-special-you {
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:stretch;
    width:100%;
    min-height:0;
    height:clamp(475px,128vw,570px);
    padding:0;
    background:#38251d;
    overflow:hidden;
    isolation:isolate;
  }
  #special-you .nv-special-you-media {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    z-index:0;
  }
  #special-you .nv-special-you-media img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:66% center;
  }
  #special-you::after {
    display:block;
    content:"";
    position:absolute;
    z-index:1;
    inset:0;
    pointer-events:none;
    background:linear-gradient(to bottom,
      rgba(21,11,7,.02) 0%,
      rgba(21,11,7,.10) 24%,
      rgba(21,11,7,.50) 54%,
      rgba(21,11,7,.90) 100%);
  }
  #special-you .nv-special-you-copy {
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    width:100%;
    max-width:none;
    margin:0;
    padding:46px 24px 33px;
    box-sizing:border-box;
    color:white!important;
    text-align:center;
  }
  #special-you .nv-special-you-eyebrow {
    display:flex;
    justify-content:center;
    gap:9px;
    max-width:100%;
    margin:0 0 11px;
    font-size:clamp(9px,2.45vw,10px);
    line-height:1.45;
    letter-spacing:.15em;
    color:#f3e1d4!important;
    text-transform:none;
  }
  #special-you .nv-special-you-eyebrow span{
    color:#eed2af!important;
  }
  #special-you h2 {
    width:100%;
    max-width:430px;
    color:#fff!important;
    font-size:clamp(32px,8.8vw,46px);
    line-height:1.1;
    margin:0 auto 12px;
    text-shadow:0 2px 13px rgba(0,0,0,.24);
  }
  #special-you p {
    max-width:360px;
    margin:0 auto 19px;
    color:#f8f0ea!important;
    font-size:clamp(11px,3.1vw,13px);
    line-height:1.6;
    text-shadow:0 1px 5px rgba(0,0,0,.35);
  }
  #special-you .nv-special-you-button {
    display:inline-flex;
    min-height:43px;
    margin:0;
    padding:11px 18px;
    background:#fff!important;
    color:#46220d!important;
    border:1px solid #fff!important;
    font-size:10px;
    letter-spacing:.055em;
    border-radius:6px!important;
    box-shadow:0 2px 12px rgba(0,0,0,.14);
  }
  #special-you .nv-special-you-button:hover,
  #special-you .nv-special-you-button:focus-visible {
    background:#f7e8d6!important;
    border-color:#f7e8d6!important;
    color:#46220d!important;
  }

  /* Payment option labels: 3 on row one, 2 centered on row two. */
  .nivah-payment-promise .nv-payment-methods {
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:9px;
    width:100%;
    max-width:430px;
    flex:1 1 100%;
    justify-items:stretch;
    align-items:center;
  }
  .nivah-payment-promise .nv-payment-methods .nv-payment-status {
    grid-column:1 / -1;
    width:100%;
    margin:0 0 2px;
    text-align:left;
  }
  .nivah-payment-promise .nv-payment-methods .nv-payment-brand {
    box-sizing:border-box;
    grid-column:span 2;
    display:flex!important;
    width:100%;
    min-width:0!important;
    max-width:100%;
    height:46px;
    margin:0;
    padding:5px 7px;
    border-radius:7px;
  }
  .nivah-payment-promise .nv-payment-methods .nv-payment-brand img {
    display:block;
    width:auto;
    height:auto;
    max-height:32px;
    max-width:100%;
    object-fit:contain;
  }
  .nivah-payment-promise .nv-payment-methods .nv-payment-tabby {
    grid-column:2 / span 2;
    min-width:0!important;
  }
  .nivah-payment-promise .nv-payment-methods .nv-payment-tamara {
    grid-column:4 / span 2;
    min-width:0!important;
  }

  /* Center the mobile footer brand and its surrounding editorial content. */
  .nv-expanded-footer .nv-footer-intro {
    align-items:center;
    text-align:center;
  }
  .nv-expanded-footer .nv-footer-intro h2,
  .nv-expanded-footer .nv-footer-intro p {
    margin-left:auto;
    margin-right:auto;
  }
  .nv-expanded-footer .nv-footer-intro .nv-footer-explore {
    justify-content:center;
    text-align:center;
    min-width:min(100%,220px);
  }
  .nv-expanded-footer .nv-footer-services .nv-footer-service {
    justify-content:center;
    text-align:left;
  }
  .nv-expanded-footer .nv-footer-main {
    grid-template-columns:repeat(2,minmax(0,1fr));
    justify-items:center;
    column-gap:16px;
    row-gap:30px;
  }
  .nv-expanded-footer .nv-footer-brand {
    grid-column:1 / -1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:100%;
    min-width:0;
    text-align:center;
  }
  .nv-expanded-footer .nv-footer-brand .nivah-footer-logo {
    display:flex;
    width:140px;
    height:auto;
    margin:0 auto 14px;
    align-items:center;
    justify-content:center;
  }
  .nv-expanded-footer .nv-footer-brand .nivah-footer-logo img.nivah-approved-logo {
    display:block;
    width:125px!important;
    height:auto!important;
    max-height:none;
    margin:0 auto;
  }
  .nv-expanded-footer .nv-footer-brand-story {
    max-width:350px;
    margin:0 auto 22px;
    text-align:center;
  }
  .nv-expanded-footer .nv-footer-brand-contact {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:100%;
    gap:9px;
    text-align:center;
  }
  .nv-expanded-footer .nv-footer-brand-contact .nv-footer-mini-label{
    width:auto;
    margin:0;
  }
  .nv-expanded-footer .nvsc-storefront-social {
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    margin-left:auto;
    margin-right:auto;
  }
  .nv-expanded-footer .nv-footer-column {
    align-items:center;
    justify-content:flex-start;
    text-align:center;
    width:100%;
  }
  .nv-expanded-footer .nv-footer-column>a {
    text-align:center;
  }
  .nv-expanded-footer .nv-footer-boutique {
    grid-column:1/-1;
    width:100%;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .nv-expanded-footer .nv-footer-boutique p {
    margin-left:auto;
    margin-right:auto;
  }
  .nv-expanded-footer .nv-footer-boutique>a.nv-footer-contact-cta {
    justify-content:center;
    width:min(100%,260px);
  }
  .nv-expanded-footer .nv-footer-message {
    justify-items:center;
    text-align:center;
    grid-template-columns:1fr;
  }
  .nv-expanded-footer .nv-footer-message>a {
    grid-column:1;
    justify-self:center;
  }
  .nv-expanded-footer .nv-footer-bottom {
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:100%;
    text-align:center;
    gap:10px;
  }
  .nv-expanded-footer .nv-footer-bottom>span:last-child {
    justify-content:center;
  }
  .nv-expanded-footer .nv-footer-staging {
    text-align:center;
  }
}

@media (max-width:350px){
  #special-you.nv-special-you {height:475px}
  #special-you .nv-special-you-copy {padding:30px 15px 27px}
  #special-you h2{font-size:31px}
  .nv-expanded-footer .nv-footer-main{column-gap:10px}
}

/* Final CTA audit: these older section styles force sharp corners with
   their own high-specificity rules. Exclude editorial text-only links. */
#thoughtful-gifts .nv-love-gifts-footer a.btn,
.nv-bespoke-submit,
.nv-outlet-cta-primary,
.nv-outlet-cta-secondary,
.nv-google-review-link,
.nv-google-review-write {
  border-radius:6px!important;
}

@media(max-width:700px) {
  /* Place the earring visibly in the photograph, not outside the mobile crop. */
  #special-you .nv-special-you-media img{
    object-position:94% center;
  }
}

/* Custom design request CTA had a stronger ID-level square-corner rule. */
#customize-jewellery .nv-bespoke-submit {
  border-radius:6px!important;
}
