/* Adrar B2B — front-end elements. Kept minimal so the theme styles win. */

.adrar-b2b-price-hidden { font-size: .9em; font-style: italic; opacity: .8; }

.adrar-b2b-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1em; margin: 1em 0; }
.adrar-b2b-cta--loop { justify-content: center; margin: .5em 0 0; }
.adrar-b2b-cta--loop .adrar-b2b-apply-link,
.adrar-b2b-cta--loop .adrar-b2b-pending-note { flex-basis: 100%; text-align: center; font-size: .85em; }
.adrar-b2b-apply-link { text-decoration: underline; }
.adrar-b2b-pending-note { font-size: .9em; opacity: .8; }

.adrar-b2b-tiers { width: auto; min-width: 260px; margin: 1em 0 .5em; border-collapse: collapse; }
.adrar-b2b-tiers th, .adrar-b2b-tiers td { padding: .4em .8em; border: 1px solid rgba(0,0,0,.12); text-align: left; }
.adrar-b2b-moq { font-size: .9em; margin: 0 0 1em; }
.adrar-b2b-tier-note { display: block; opacity: .75; }

.adrar-b2b-quote-form .adrar-b2b-field label { display: block; font-weight: 600; margin-bottom: .25em; }
.adrar-b2b-quote-form input, .adrar-b2b-quote-form select, .adrar-b2b-quote-form textarea { width: 100%; max-width: 640px; }
.adrar-b2b-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.adrar-b2b-notice { padding: 1em 1.2em; margin: 0 0 1.5em; border-left: 4px solid; }
.adrar-b2b-notice--success { border-color: #2e7d32; background: rgba(46,125,50,.08); }
.adrar-b2b-notice--error { border-color: #c62828; background: rgba(198,40,40,.08); }
.adrar-b2b-notice ul { margin: 0 0 0 1.2em; }

.adrar-b2b-registration { margin: 1.5em 0; padding: 0; border: 0; }
.adrar-b2b-registration legend { font-weight: 600; font-size: 1.1em; margin-bottom: .5em; }
.adrar-b2b-checkboxes .adrar-b2b-label { display: block; margin-bottom: .25em; }
.adrar-b2b-checkbox { display: inline-block; margin: 0 1em .25em 0; font-weight: normal; }

.adrar-b2b-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.adrar-b2b-whatsapp--placeholder { opacity: .6; cursor: not-allowed; }

.adrar-b2b-quote-form input[type="file"] { padding: .5em 0; }
.adrar-b2b-help { display: block; font-size: .85em; opacity: .8; margin-top: .25em; }
.adrar-b2b-files-error { display: block; margin-top: .4em; color: #c62828; font-size: .9em; }
.adrar-b2b-files-error[hidden] { display: none; }

/* File field: the real input covers the custom button + status once the script has run
   (.is-enhanced), so clicks, taps and the keyboard all reach the real input. Without the
   script, the browser's own field is shown. */
.adrar-b2b-file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 640px; }
.adrar-b2b-file__button, .adrar-b2b-file__status { display: none; }
.adrar-b2b-file.is-enhanced .adrar-b2b-file__button { display: inline-block; }
.adrar-b2b-file.is-enhanced .adrar-b2b-file__status { display: block; flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adrar-b2b-quote-form .adrar-b2b-file.is-enhanced .adrar-b2b-file__input { position: absolute; inset: 0; z-index: 1; width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; font-size: 0; }
.adrar-b2b-file__list ul { margin: .5em 0 0 1.2em; font-size: .9em; }
.adrar-b2b-file__list[hidden] { display: none; }
