/* Becca Bevakningar. Avgränsat till pluginets egna klasser. */
.bdw-watch-form {
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #352b34;
    text-align: left;
}
.bdw-watch-form h3 {
    margin: 0 0 14px;
    color: #352b34;
    font-size: 18px;
    line-height: 1.35;
}
.bdw-watch-form .bdw-watch-copy {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
}
.bdw-watch-form .bdw-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 650;
}
.bdw-watch-form input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8c9d1;
    border-radius: 0;
    background: #fff;
    color: #352b34;
    font-size: 16px;
    line-height: 1.35;
    box-shadow: none;
}
/* Välj exakt slutsåld variant – gäller både arkiv och produktsida. */
.bdw-watch-form .bdw-variation-select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    min-height: 44px;
    margin: 0 0 15px;
    padding: 10px 14px;
    border: 1px solid #d8c9d1;
    border-radius: 0;
    background: #fff;
    color: #352b34;
    font-size: 15px;
    box-shadow: none;
}
.bdw-watch-form input[type="email"]::placeholder { color: #8f8189; }
.bdw-watch-form .bdw-newsletter {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0 8px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    cursor: pointer;
}
.bdw-watch-form .bdw-newsletter input {
    flex: 0 0 auto;
    margin: 2px 0 0;
}
.bdw-watch-form .bdw-watch-privacy {
    margin: 8px 0 16px;
    color: #776773;
    font-size: 13px;
    line-height: 1.55;
}
.bdw-watch-form .bdw-submit,
.woocommerce ul.products li.product .bdw-loop .bdw-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: #ef5c35;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}
.bdw-watch-form .bdw-submit:hover { background: #d9482c; color: #fff; }
.woocommerce ul.products li.product .bdw-loop .bdw-toggle:hover { background: #e3cad5; color: #72435a; }
.bdw-watch-form .bdw-submit:focus-visible,
.bdw-loop .bdw-toggle:focus-visible,
.bdw-watch-form input[type="email"]:focus-visible { outline: 3px solid #903950; outline-offset: 2px; }
.bdw-watch-form .bdw-result { margin-top: 12px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.bdw-watch-form .bdw-result.is-error { color: #9d243d; }
.bdw-watch-form .bdw-result.is-success { color: #286e48; }
.bdw-watch-form .bdw-submit:disabled { opacity: .6; cursor: wait; }
.bdw-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Arkiv */
.woocommerce ul.products li.product .bdw-loop { box-sizing: border-box; width: 100%; margin-top: 2px; }
.woocommerce ul.products li.product .bdw-loop .bdw-toggle {
    width: 100%;
    margin: 0;
    background: #f0e0e7;
    border: 1px solid #dec5d0;
    color: #72435a;
}
.bdw-loop .bdw-collapsible[hidden],
.bdw-loop .bdw-toggle[hidden],
.bdw-watch-form .bdw-submit[hidden] { display: none !important; }
.woocommerce ul.products li.product .bdw-loop .bdw-collapsible { margin-top: 12px; }
.woocommerce ul.products li.product .bdw-loop .bdw-watch-form { margin: 0; }
.woocommerce ul.products li.product .bdw-loop .bdw-watch-form input[type="email"] { display: block; max-width: 280px; font-size: 15px; padding: 13px 14px; }
.woocommerce ul.products li.product .bdw-loop .bdw-variation-select { max-width: 280px; }
.woocommerce ul.products li.product .bdw-watch-form .bdw-newsletter { font-size: 13px; }
.woocommerce ul.products li.product .bdw-watch-form .bdw-watch-privacy { font-size: 12px; margin-bottom: 12px; }
.woocommerce ul.products li.product .bdw-watch-form .bdw-submit { padding: 11px 18px; }

/* Single produkt */
.single-product .bdw-watch-form--product {
    max-width: 520px;
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #efd7e0;
    border-radius: 16px;
    background: #fff8fa;
}
.single-product .bdw-watch-form--product h3 { margin-bottom: 12px; }

/* Kategori/etikett: fullbreddspanel inom sidans innehållsyta. */
.bdw-watch-form--term {
    width: 100%;
    max-width: 100%;
    padding: 22px;
    border: 1px solid #efd7e0;
    border-radius: 16px;
    background: #fff8fa;
}
.bdw-watch-form--term input[type="email"] { max-width: 420px; }

/* Rund, dekorativ bild till vänster på desktop. Inget extra omslag på
   produktkort eller single product, bara kategori-/etikettformulär. */
.bdw-watch-form--term .bdw-term-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    column-gap: 32px;
}
.bdw-watch-form--term .bdw-term-fields { min-width: 0; }
.bdw-watch-form--term .bdw-term-visual {
    box-sizing: border-box;
    width: 190px;
    height: 190px;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #efdde5;
    box-shadow: 0 5px 18px rgba(92, 45, 65, .10);
}
.bdw-watch-form--term .bdw-term-visual .bdw-term-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 767px) {
    /* Behåll det lättanvända formuläret i full bredd på mobil. */
    .bdw-watch-form--term .bdw-term-layout { display: block; }
    .bdw-watch-form--term .bdw-term-visual { display: none; }
}

/* Slutsåld variabel produkt: behåll val av attribut, men dölj den oanvändbara
   köp-/antal-raden som WooCommerce annars visar ovanför bevakningen.
   Gäller INTE variabla produkter som fortfarande kan beställas. */
.single-product div.product.outofstock.product-type-variable form.variations_form .woocommerce-variation-add-to-cart {
    display: none;
}

@media (max-width: 480px) {
    .bdw-watch-form h3 { font-size: 17px; }
    .bdw-watch-form input[type="email"] { padding: 13px 14px; }
    .bdw-watch-form .bdw-submit,
    .woocommerce ul.products li.product .bdw-loop .bdw-toggle { width: auto; }
}
