/* Baltic Bears Wholesale frontend additions. The site's WooCommerce/theme styling remains primary. */
.bbw-wrap { max-width: 1180px; }
.bbw-lead { font-size: 1.08em; }
.bbw-admin-note { margin-top: 12px; padding: 10px 12px; border: 1px dashed currentColor; font-size: .92em; opacity: .8; }

/* Public wholesale landing */
.bbw-public-landing { padding-bottom: 24px; }
.bbw-hero-media { margin: 0 0 42px; overflow: hidden; border-radius: 10px; background: #f2f2ef; }
.bbw-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 2.7 / 1; object-fit: cover; object-position: center center; }
.bbw-hero { margin: 0 0 34px; }
.bbw-hero-copy { max-width: 820px; }
.bbw-hero-copy h2 { margin-bottom: 14px; }
.bbw-hero-lead { margin: 0 0 18px; font-size: clamp(1.15rem, 1rem + .55vw, 1.55rem); line-height: 1.35; }
.bbw-hero-copy p:not(.bbw-hero-lead) { max-width: 760px; font-size: 1.02rem; line-height: 1.72; }

.bbw-actions { display: none; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.bbw-actions .button { margin: 0; padding-left: 18px; padding-right: 18px; }
.bbw-actions .bbw-secondary-action { background: transparent; border: 1px solid currentColor; }

.bbw-public-landing > .bbw-notice { margin: 0 0 24px; }

.bbw-access-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr); gap: 30px; align-items: start; }
.bbw-card { border: 1px solid rgba(0,0,0,.12); border-radius: 12px; padding: clamp(20px, 2vw, 30px); background: rgba(255,255,255,.72); scroll-margin-top: 110px; }
.bbw-card h3 { margin-top: 0; margin-bottom: 12px; }
.bbw-card > p { font-size: 1rem; line-height: 1.62; }
.bbw-login-card { position: sticky; top: 24px; }

/* Keep the anti-spam field truly out of sight. */
.bbw-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.bbw-form { margin-top: 22px; }
.bbw-form p { margin: 0 0 17px; }
.bbw-form label, .bbw-login label { display: block; margin-bottom: 7px; font-size: .98rem; font-weight: 600; }
.bbw-form input[type="text"],
.bbw-form input[type="email"],
.bbw-form input[type="tel"],
.bbw-form textarea,
.bbw-login input[type="text"],
.bbw-login input[type="password"] { width: 100%; box-sizing: border-box; }
.bbw-form textarea { min-height: 120px; resize: vertical; }
.bbw-form-submit { margin-top: 22px !important; margin-bottom: 0 !important; }

.bbw-login { margin-top: 22px; }
.bbw-login p { margin: 0 0 16px; }
.bbw-login .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; }
.bbw-login .login-submit { margin-top: 20px; }
.bbw-lost-password { margin-top: 6px !important; font-size: .95em; }

/* Existing wholesale catalogue helpers */
.bbw-section { margin-top: 34px; padding-top: 10px; scroll-margin-top: 120px; }
.bbw-login-section { border-top: 1px solid rgba(0,0,0,.12); padding-top: 28px; }
.bbw-login-reminder { margin-top: 18px; }

@media (max-width: 820px) {
    .bbw-actions { display: flex; }
    .bbw-access-grid { grid-template-columns: 1fr; }
    .bbw-login-card { position: static; }
    .bbw-hero-media { margin-bottom: 30px; border-radius: 8px; }
    .bbw-hero-media img { aspect-ratio: 16 / 9; object-position: center center; }
    .bbw-hero { margin-bottom: 26px; }
}

@media (max-width: 520px) {
    .bbw-actions { display: grid; grid-template-columns: 1fr; }
    .bbw-actions .button { text-align: center; }
    .bbw-card { border-radius: 10px; padding: 20px; }
}

/* Wholesale catalogue: WooCommerce shortcode supplies the theme's normal product-grid wrappers. */
.bbw-wholesale-products { margin-top: 24px; }


/* Logged-in wholesale portal */
.bbw-logged-in-portal { padding-bottom: 28px; }
.bbw-portal-header { max-width: 900px; margin: 0 0 28px; }
.bbw-portal-header h2 { margin: 0 0 12px; font-size: clamp(1.45rem, 1.22rem + .55vw, 1.9rem); line-height: 1.25; }
.bbw-portal-header p { margin: 0; max-width: 820px; font-size: 1.04rem; line-height: 1.65; }

.bbw-trade-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 24px;
    align-items: center;
    margin: 0 0 38px;
    padding: 17px 20px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    background: rgba(0,0,0,.025);
}
.bbw-trade-bar-item { min-width: 0; }
.bbw-trade-delivery { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.bbw-trade-label { font-weight: 700; }
.bbw-trade-separator { margin: 0 2px; opacity: .6; }
.bbw-trade-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.bbw-trade-status-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
}
.bbw-trade-session { justify-self: end; }
.bbw-trade-logout,
.bbw-trade-logout:link,
.bbw-trade-logout:visited,
.bbw-trade-logout:hover,
.bbw-trade-logout:focus {
    margin: 0 !important;
    padding: 8px 15px !important;
    min-height: auto !important;
    background: transparent !important;
    color: var(--ast-global-color-0, #0b4d3c) !important;
    border: 1px solid currentColor !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: .93rem !important;
    line-height: 1.3 !important;
}
.bbw-trade-logout:hover,
.bbw-trade-logout:focus { opacity: .82; }
.bbw-catalogue-heading { margin: 0 0 20px; }
.bbw-catalogue-heading + .bbw-notice { margin-top: 0; }
.bbw-catalogue-heading + .bbw-wholesale-products,
.bbw-catalogue-heading ~ .bbw-wholesale-products { margin-top: 0; }

@media (max-width: 760px) {
    .bbw-portal-header { margin-bottom: 22px; }
    .bbw-trade-bar { grid-template-columns: 1fr; gap: 14px; padding: 16px; margin-bottom: 30px; }
    .bbw-trade-session { justify-self: start; }
}
