/* Back In Stock Notification – Public Styles */

.aq-bisn-notify-form {
    margin: 1.5em 0;
    padding: 1.25em 1.5em;
    background: #f9f9f9;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
}

.aq-bisn-notify-form__title {
    margin: 0 0 0.75em;
    font-size: 1em;
}

.aq-bisn-notify-form__fields {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.aq-bisn-notify-form__email {
    flex: 1 1 220px;
    padding: 0.5em 0.75em;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.aq-bisn-notify-form__submit {
    white-space: nowrap;
}

.aq-bisn-notify-form__gdpr {
    margin: 0.5em 0 0;
    font-size: 0.8em;
    color: #666;
}

.aq-bisn-notify-form__message {
    margin-top: 0.75em;
    font-size: 0.9em;
    line-height: 1.5;
}

.aq-bisn-notify-form__message.aq-bisn--success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    padding: 0.6em 0.9em;
}

.aq-bisn-notify-form__message.aq-bisn--error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
    padding: 0.6em 0.9em;
}

/* ==========================================================================
   My Account – Stock Notifications
   ========================================================================== */
.aq-bisn-account{
	width: clamp(min(100%, 320px), 50vw, 860px);
	margin: 0 auto;
}

.aq-bisn-account__empty {
    padding: 2em 0;
    text-align: center;
}

.aq-bisn-account__intro {
    margin: 0 0 1.5em;
    color: #555;
}

.aq-bisn-account__list {
    list-style: none;
    margin: 12px auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
}

/* ------------------------------------------------------------------
   Product card
   ------------------------------------------------------------------ */

.aq-bisn-card {
    display: flex;
    flex-direction: row;
	flex-wrap: wrap;
    background: #fff;
    min-height: 0;
    transition: background 0.15s;
}

.aq-bisn-card:not(:last-child) {
    border-bottom: 1px solid #e8e8e8;
}

.aq-bisn-card:hover {
    background: #fafafa;
}

/* Image column – 7/5 aspect ratio, fills card height */
.aq-bisn-card__image-wrap {
    flex: 1 0 auto;
    width: calc( 5 / 7 * 160px );   /* width derived from desired height ~160px */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
	min-width: 30%;
    aspect-ratio: 5 / 7;
    /* Aspect ratio 7:5 = width:height → padding-top trick on inner pseudo */
}

/* Force 7:5 aspect on the wrap itself */
.aq-bisn-card__image-wrap::before {
    content: '';
    display: block;
    padding-top: calc( 5 / 7 * 100% );
}

.aq-bisn-card__image-wrap .aq-bisn-card__img,
.aq-bisn-card__image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Body column */
.aq-bisn-card__body {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1em 1.25em;
    gap: 0.5em;
}

.aq-bisn-card__main {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.aq-bisn-card__name {
    font-weight: 600;
    font-size: 0.95em;
    color: inherit;
    text-decoration: none;
    line-height: 1.3;
}

.aq-bisn-card__name:hover {
    text-decoration: underline;
}

.aq-bisn-card__variation {
    display: block;
    font-weight: 400;
    font-size: 0.8em;
    color: #666;
    margin-top: 0.1em;
}

.aq-bisn-card__sku {
    font-size: 0.78em;
    color: #999;
    letter-spacing: 0.02em;
}

.aq-bisn-card__price {
    margin-top: 0.35em;
    font-size: 0.95em;
}

.aq-bisn-card__price .woocommerce-Price-amount {
    font-weight: 600;
}

/* Footer row */
.aq-bisn-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;
    flex-wrap: wrap;
}

.aq-bisn-card__date {
    font-size: 0.78em;
    color: #999;
}

.aq-bisn-card__remove {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 0.3em 0.75em;
    font-size: 0.78em;
    color: #c0392b;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1.5;
}

.aq-bisn-card__remove:hover {
    background: #fdf0ef;
    border-color: #c0392b;
}

.aq-bisn-card__remove:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Fade out on remove */
.aq-bisn-card--removing {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.25s;
}

/* Notified / restocked card state */
.aq-bisn-card--notified {
    background: #f9fdf9;
}

.aq-bisn-card--notified .aq-bisn-card__image-wrap {
    position: relative;
}

.aq-bisn-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #27ae60;
    color: #fff;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2em 0.55em;
    border-radius: 3px;
    line-height: 1.5;
    pointer-events: none;
}

.aq-bisn-card__date--restocked {
    color: #27ae60;
    font-size: 0.8em;
    line-height: 1.4;
}

.aq-bisn-card__date--restocked strong {
    font-weight: 600;
}

/* Inline unsubscribe link on product page */
.aq-bisn-unsubscribe-link {
    margin: 0.5em 0 0;
    font-size: 0.82em;
    color: #888;
}

.aq-bisn-unsubscribe-link a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.aq-bisn-unsubscribe-link a:hover {
    color: #c0392b;
}

/* ── Known-user email hint (logged-in, no input shown) ── */
.aq-bisn-notify-form__email-hint {
    font-size: 0.875em;
    color: #555;
    margin: 0 0 8px;
    line-height: 1.4;
}

.aq-bisn-notify-form__email-hint strong {
    color: #333;
}

/* ── Low stock urgency message (My Account card) ── */
.aq-bisn-card__low-stock {
    display: block;
    margin-top: 6px;
    font-size: 0.8em;
    font-weight: 600;
    color: #c0392b;
    line-height: 1.4;
}

/* ── Account header (title + subtitle) ── */
.aq-bisn-account__header {
    margin-bottom: 8px;
}

.aq-bisn-account__title {
    margin: 0 0 4px;
    font-size: 1.1em;
    font-weight: 600;
}

.aq-bisn-account__subtitle {
    margin: 0;
    font-size: 0.875em;
    color: #666;
}

/* ── Bottom summary ── */
.aq-bisn-account__summary {
    font-size: 0.8em;
    color: #888;
    text-align: right;
	margin: 0;
}
