/* ============================================================
   Listing Sold Out — Single Listing Styles v1.3.0
   Loaded ONLY on singular sold-out listing pages.
   ============================================================ */

/* ----------------------------------------------------------
   SOLD OUT BANNER
   Sits before .header-detail-bottom (above both title + price).

   Spacing rationale:
   - margin-top: 8px  → small gap below the action bar above
   - margin-bottom: 6px → tight gap before the title/price row
     (the theme's own padding on .header-detail-bottom provides
     the rest of the visual separation — we don't double it)

   ICON: pure CSS ::before circle — avoids WordPress emoji
   script converting any emoji character into <img class="emoji">
   which caused the broken/oversized icon in the screenshot.
   ---------------------------------------------------------- */
.lso-soldout-banner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 10px; /* flex gap: Chrome 84+, FF 63+, Safari 14.1+, Edge 84+ */
    margin: 8px 0 6px 0;
    padding: 10px 14px;
    background: #fff3cd;
    border: 1px solid #f0ad4e;
    border-left: 5px solid #dc3545;
    border-radius: 6px;
    font-size: 14px;
    color: #4a3000;
    line-height: 1.5;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* CSS-only red circle icon — no emoji, no external resource */
.lso-soldout-banner::before {
    content: '';
    display: inline-block;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    width: 14px;
    height: 14px;
    min-width: 14px;
    background-color: #dc3545;
    border-radius: 50%;
    -ms-flex-item-align: center;
        align-self: center;
}

.lso-soldout-banner__text strong {
    color: #dc3545;
}

/* gap fallback for iOS Safari < 14.5 */
.lso-soldout-banner__text {
    margin-left: 4px;
}

/* ----------------------------------------------------------
   DISABLED FORM
   ---------------------------------------------------------- */
.lso-form-disabled {
    opacity: 0.55;
    pointer-events: none;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    -webkit-filter: grayscale(40%);
            filter: grayscale(40%);
    position: relative;
}

.lso-form-disabled input,
.lso-form-disabled textarea,
.lso-form-disabled select,
.lso-form-disabled button {
    cursor: not-allowed !important;
    background-color: #f5f5f5 !important;
    color: #999 !important;
    border-color: #ddd !important;
}

.lso-form-notice {
    display: block;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    font-size: 13px;
    color: #721c24;
    font-weight: 500;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    width: 100%;
}

/* ----------------------------------------------------------
   DISABLED MFP TRIGGER BUTTONS
   ---------------------------------------------------------- */
.lso-btn-disabled,
.lso-btn-disabled:hover,
.lso-btn-disabled:focus,
.lso-btn-disabled:active {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    -webkit-filter: grayscale(70%) !important;
            filter: grayscale(70%) !important;
    text-decoration: none !important;
    -webkit-box-shadow: none !important;
            box-shadow: none !important;
    outline: none !important;
}

/* ----------------------------------------------------------
   OVERLAY on sidebar widget sections
   ---------------------------------------------------------- */
.lso-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.75);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 100;
    border-radius: inherit;
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
}

.lso-overlay__badge {
    padding: 8px 24px;
    background: #dc3545;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 4px;
    border-radius: 6px;
    text-transform: uppercase;
    -webkit-box-shadow: 0 4px 16px rgba(220, 53, 69, 0.35);
            box-shadow: 0 4px 16px rgba(220, 53, 69, 0.35);
    -webkit-transform: rotate(-8deg);
        -ms-transform: rotate(-8deg);
            transform: rotate(-8deg);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .lso-soldout-banner {
        font-size: 13px;
        padding: 8px 12px;
        gap: 8px;
    }
    .lso-overlay__badge {
        font-size: 16px;
        padding: 7px 18px;
        letter-spacing: 2px;
    }
}
