/* Buy Now public pages. Scoped to avoid modifying auctions or the global theme. */
/* Constrain the complete Buy Now catalogue to the same centred width as Auction Events.
   Site-wide marketplace CSS also contains `.entry-content > div {max-width:none!important;}`.
   This higher-specificity rule intentionally overrides that generic full-bleed setting
   without affecting the auction pages or other site content. */
body.amco-as-marketplace-ui .amco-bn,
body.amco-as-marketplace-ui .entry-content > div.amco-bn,
body.amco-as-marketplace-ui .entry-content .amco-bn {
    box-sizing:border-box;
    width:min(1340px, calc(100% - 36px)) !important;
    max-width:1340px !important;
    margin:28px auto 75px !important;
    padding:0 !important;
    font-family:inherit;
    color:#18243e;
}
/* Standalone page previews / non-plugin themes retain the same constrained layout. */
.amco-bn{box-sizing:border-box;width:min(1340px, calc(100% - 36px));max-width:1340px;margin:28px auto 75px;font-family:inherit;color:#18243e}
.amco-bn *, .amco-bn *::before,.amco-bn *::after{box-sizing:border-box}
.amco-bn a{text-decoration:none}
.amco-bn-hero{border:1px solid #d7e1f3;border-radius:22px;padding:30px 34px;background:#fff;margin-bottom:24px}
.amco-bn-eyebrow{font-size:12px;letter-spacing:.12em;color:#4656e9;font-weight:850}
.amco-bn h1{font-size:clamp(30px,4vw,46px);line-height:1.16;margin:10px 0;color:#15213a;font-weight:850}
.amco-bn-hero p{color:#556681;max-width:680px;margin:0;font-size:16px;line-height:1.6}
.amco-bn-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 24px}
.amco-bn-filter input,.amco-bn-filter select,.amco-bn-enquiry input:not([type=checkbox]),.amco-bn-enquiry textarea{background:#fff;border:1px solid #cad6ec;color:#15213a;border-radius:12px;min-height:48px;padding:12px 14px;font:inherit;font-size:16px}
.amco-bn-filter input{flex:1 1 280px;min-width:0}.amco-bn-filter select{flex:0 1 220px;min-width:0}
.amco-bn-button,.amco-bn a.amco-bn-button{display:inline-flex;align-items:center;justify-content:center;min-height:47px;border-radius:11px;padding:11px 21px;border:0;background:#4254e9;color:#fff!important;font-weight:800;font-size:15px;text-align:center;cursor:pointer;text-decoration:none!important}
.amco-bn-button:hover,.amco-bn a.amco-bn-button:hover{background:#293bce;color:#fff!important}
.amco-bn-reset{font-weight:700;color:#4656e9!important}
.amco-bn-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch;width:100%;min-width:0}
.amco-bn-grid > .amco-bn-card{width:100%;max-width:100%;margin:0}
.amco-bn-card{min-width:0;background:#fff;border-radius:18px;border:1px solid #dbe4ee;padding:10px;box-shadow:0 5px 20px rgba(15,31,60,.07);display:flex;flex-direction:column}
.amco-bn-card-topline{min-height:30px;display:flex;align-items:center;margin-bottom:9px}
.amco-bn-card-image{display:block;aspect-ratio:4/3;width:100%;border-radius:12px;overflow:hidden;background:#e9eef9;color:#6c7790}
.amco-bn-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.amco-bn-placeholder{width:100%;height:100%;min-height:0;display:grid;place-items:center;background:#eff3fa;color:#8492ac;font-weight:700}
.amco-bn-card-body{padding:12px 2px 2px;display:flex;flex-direction:column;align-items:stretch;gap:10px;flex:1;min-height:140px}
.amco-bn-card-body h2{font-size:14px;line-height:1.3;color:#162139;margin:0;font-weight:850;min-height:37px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.amco-bn-card-body h2 a{color:inherit!important}
.amco-bn-price-block{display:flex;flex-direction:column;gap:4px;margin-bottom:3px}
.amco-bn-price-block>span{font-size:12px;font-weight:750;color:#64748b}
.amco-bn-price{display:block;font-size:19px;line-height:1.2;color:#17223c;font-weight:900}
.amco-bn-card-body .amco-bn-button{width:100%;margin-top:auto;min-height:40px;padding:8px 12px;border-radius:10px;font-size:14px}
.amco-bn-status{display:inline-flex;border-radius:99px;padding:5px 11px;font-size:12px;letter-spacing:.025em;font-weight:850;color:#127442;background:#e4f6ea}
.amco-bn-status.reserved{background:#fff3dc;color:#946019}.amco-bn-status.sold{background:#f2d9dd;color:#a62838}

/* Featured Buy Now items: auction-style horizontal carousel, independently managed. */
.amco-bn-featured{min-width:0;margin:0 0 24px;padding:19px 18px 18px;background:#fff;border:1px solid #d7e1f3;border-radius:18px}
.amco-bn-featured-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 14px}
.amco-bn-featured-head h2{color:#18243e;font-size:21px;line-height:1.25;margin:0 0 3px;font-weight:850}
.amco-bn-featured-head p{color:#64748b;font-size:13px;margin:0}
.amco-bn-featured-controls{display:flex;gap:7px;flex:none}
.amco-bn-featured-arrow{width:40px;height:40px;border:1px solid #d2ddef;border-radius:50%;font-size:26px;line-height:1;background:#fff;color:#26354e;display:grid;place-items:center;cursor:pointer}
.amco-bn-featured-arrow:not(:disabled):hover{color:#4254e9;border-color:#4254e9}
.amco-bn-featured-arrow:disabled{opacity:.32;cursor:default}
.amco-bn-featured-track{min-width:0;display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:1px;scrollbar-width:thin;overscroll-behavior-inline:contain;padding:2px 2px 10px}
.amco-bn-featured-item{flex:0 0 clamp(205px,22%,260px);min-width:0;display:flex;flex-direction:column;border:1px solid #dbe4ee;border-radius:13px;background:#fff;overflow:hidden;scroll-snap-align:start;color:#18243e!important}
.amco-bn-featured-item:hover{border-color:#aabce7}
.amco-bn-featured-photo{aspect-ratio:4/3;display:block;overflow:hidden;position:relative;background:#eff3fa}
.amco-bn-featured-photo img{display:block;width:100%;height:100%;object-fit:cover}
.amco-bn-featured-badge{position:absolute;left:8px;top:8px;border-radius:6px;background:#4254e9;color:#fff;padding:5px 9px;font-weight:850;font-size:11px}
.amco-bn-featured-copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:10px 11px 12px;flex:1}
.amco-bn-featured-title{font-size:14px;line-height:1.35;font-weight:850;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}
.amco-bn-featured-price{font-size:17px;color:#15213a;font-weight:900;margin-top:auto}
.amco-bn-pages{display:flex;justify-content:center;margin-top:28px}
.amco-bn-pages ul{list-style:none;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0;padding:0}
.amco-bn-pages .page-numbers{padding:7px 14px;border:1px solid #d5e0f0;background:#fff;border-radius:9px;color:#24314e}
.amco-bn-pages .page-numbers.current{background:#4254e9;color:#fff}
.amco-bn-empty{padding:28px;background:#fff;border:1px solid #d7e1f3;border-radius:16px;color:#556681}
.amco-bn-back{margin-bottom:20px}.amco-bn-back a{color:#4254e9!important;font-weight:750}
.amco-bn-detail{background:#fff;border:1px solid #d7e1f3;border-radius:22px;padding:27px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:36px}
.amco-bn-photo-col,.amco-bn-info{min-width:0}
.amco-bn-large-photo{aspect-ratio:1/1;max-height:690px;overflow:hidden;background:#eff3fa;border-radius:16px;display:flex;justify-content:center;align-items:center}
.amco-bn-large-photo img{height:100%;width:100%;object-fit:contain}
.amco-bn-thumbs{display:flex;gap:10px;overflow-x:auto;margin-top:12px;padding-bottom:6px}
.amco-bn-thumb{flex:0 0 82px;height:82px;background:#fff;border:1px solid #d5e0f0;border-radius:10px;padding:4px;cursor:pointer}
.amco-bn-thumb img{width:100%;height:100%;object-fit:cover;border-radius:7px}
.amco-bn-info h1{margin:11px 0 18px;font-size:clamp(27px,3vw,42px)}
.amco-bn-detail-price{font-size:clamp(28px,3vw,42px);font-weight:900;color:#14213a;margin-bottom:22px}
.amco-bn-info>p{font-size:16px;color:#45546d}
.amco-bn-description{color:#44536b;line-height:1.65;margin:21px 0;padding:18px 0;border-top:1px solid #e1e8f4;border-bottom:1px solid #e1e8f4}
.amco-bn-description p:last-child{margin-bottom:0}
.amco-bn-whatsapp{background:#177f4b!important;margin-bottom:15px}
.amco-bn-whatsapp:hover{background:#11663a!important}
.amco-bn-enquiry{margin-top:24px;padding:22px;border:1px solid #d5e0f0;border-radius:17px;background:#f9fbff}
.amco-bn-enquiry h2{font-size:22px;margin:0 0 8px;color:#14213a}
.amco-bn-enquiry>p{color:#54647c;line-height:1.5;font-size:14px;margin:0 0 18px}
.amco-bn-enquiry form{display:flex;flex-direction:column;gap:16px}
.amco-bn-enquiry form label{font-weight:750;color:#24304a;font-size:14px;display:flex;flex-direction:column;gap:7px}
.amco-bn-enquiry input:not([type=checkbox]),.amco-bn-enquiry textarea{width:100%;min-width:0}
.amco-bn-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.amco-bn-form-grid label:last-child{grid-column:1/-1}
.amco-bn-enquiry form .amco-bn-consent{display:flex;flex-direction:row;align-items:flex-start;font-size:13px;font-weight:500;gap:9px}
.amco-bn-consent input{margin-top:3px;flex:0 0 auto;width:18px;height:18px}
.amco-bn-enquiry form .amco-bn-button{align-self:flex-start}
.amco-bn-honeypot{position:absolute!important;left:-9999px!important;opacity:0!important;pointer-events:none!important}
.amco-bn-success{border:1px solid #a8dbb7;border-radius:9px;background:#edfaef;color:#19603d!important;padding:12px!important}
.amco-bn-error,.amco-bn-warning{border:1px solid #f1c5c5;border-radius:9px;background:#fff4f4;color:#953434!important;padding:12px!important}
.amco-bn-warning{background:#fff8e8;border-color:#edd09d;color:#835316!important}
@media(max-width:1100px){.amco-bn-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:840px){.amco-bn-detail{grid-template-columns:1fr;gap:22px}.amco-bn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body.amco-as-marketplace-ui .amco-bn,body.amco-as-marketplace-ui .entry-content > div.amco-bn,body.amco-as-marketplace-ui .entry-content .amco-bn{width:calc(100% - 22px) !important;margin-top:17px !important}.amco-bn{width:calc(100% - 22px);margin-top:17px}.amco-bn-hero{padding:22px}.amco-bn-grid{grid-template-columns:1fr}.amco-bn-filter{align-items:stretch}.amco-bn-filter input,.amco-bn-filter select,.amco-bn-filter .amco-bn-button{flex:1 1 100%;width:100%}.amco-bn-detail{padding:14px;border-radius:16px}.amco-bn-enquiry{padding:15px}.amco-bn-form-grid{grid-template-columns:1fr}.amco-bn-form-grid label:last-child{grid-column:auto}.amco-bn-featured{padding:15px 10px}.amco-bn-featured-head h2{font-size:18px}.amco-bn-featured-item{flex-basis:min(80%,260px)}}
.amco-bn-thumb[aria-pressed="true"]{border:2px solid #4254e9}

/* Consent gate (shown instead of catalogue or item detail until agreement). */
.amco-bn-terms{width:min(100%,760px);margin:65px auto;padding:clamp(22px,4vw,42px);background:#fff;border:1px solid #d5e0f0;border-radius:22px;box-shadow:0 9px 30px rgba(20,37,70,.05);color:#18243e}
.amco-bn-terms h1{font-size:clamp(27px,3vw,36px);margin:12px 0 12px}
.amco-bn-terms p{line-height:1.6;color:#53637b;font-size:16px}
.amco-bn a.amco-bn-terms-link{display:inline-block;color:#3045d5!important;font-size:17px;font-weight:800;text-decoration:underline!important;text-underline-offset:4px}
.amco-bn-terms form{display:flex;flex-direction:column;align-items:flex-start;gap:20px;margin-top:24px}
.amco-bn-terms-check{display:flex;gap:13px;align-items:flex-start;padding:16px;border:1px solid #c8d4eb;border-radius:13px;line-height:1.5;font-size:16px;font-weight:700;color:#192945;background:#f7faff;cursor:pointer}
.amco-bn-terms-check input{flex:0 0 21px;margin:3px 0 0;width:21px;height:21px;accent-color:#4052df}
.amco-bn-terms-note{margin-top:20px;font-size:13px!important}
@media(max-width:560px){.amco-bn-terms{margin:25px auto}.amco-bn-terms .amco-bn-button{width:100%}}

/* Independent catalogue actions; preserve card dimensions and keep WhatsApp visible on phones. */
.amco-bn-card-actions{display:flex;flex-direction:column;gap:8px;margin-top:auto}
.amco-bn-card-actions .amco-bn-button{width:100%;margin-top:0;min-height:39px}
.amco-bn a.amco-bn-card-whatsapp{background:#167747;color:#fff!important}
.amco-bn a.amco-bn-card-whatsapp:hover,.amco-bn a.amco-bn-card-whatsapp:focus{background:#105d36;color:#fff!important}
