/* =============================================================
   Websila Order Correction  –  RTL-ready notice styles
   ============================================================= */

/* ─── Wrapper reset ──────────────────────────────────────────────
   ووکامرس اعلان ما را داخل .woocommerce-info می‌پیچد و قالب به آن
   پس‌زمینه/بوردر/آیکن می‌دهد؛ نتیجه دو باکس تودرتو می‌شود. این wrapper را
   فقط وقتی اعلان ما داخلش است خنثی می‌کنیم. */
.woocommerce-info:has(.websila-oc-notice) {
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
    color: inherit !important;
}

.woocommerce-info:has(.websila-oc-notice)::before {
    content: none !important;
    display: none !important;
}

/* ─── Container ─────────────────────────────────────────────── */
.websila-oc-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;

    direction: rtl;
    text-align: right;

    background: #fff8e1;
    border: 1px solid #ffc107;
    border-right: 4px solid #e6a800;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 0 0 8px;

    font-size: 0.95em;
    line-height: 1.7;
    font-family: inherit;
}

/* ─── Text block ─────────────────────────────────────────────── */
.websila-oc-body {
    flex: 1;
    min-width: 200px;
}

.websila-oc-title {
    font-weight: 700;
    color: #6b4300;
    margin: 0 0 8px;
    font-size: 1em;
}

/* ─── Items list ─────────────────────────────────────────────── */
.websila-oc-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.websila-oc-items li {
    padding: 2px 0;
    color: #5a3e00;
    font-size: 0.92em;
}

.websila-oc-item {
    font-weight: 600;
}

.websila-oc-items del {
    color: #bbb;
    margin-inline: 3px;
}

/* ─── Button ─────────────────────────────────────────────────── */
.websila-oc-btn {
    flex-shrink: 0;
    white-space: nowrap;
    cursor: pointer;

    background-color: #00A89D !important;
    border: 2px solid #00A89D !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95em;
    padding: 10px 22px !important;
    border-radius: 5px;

    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.websila-oc-btn:hover:not(:disabled) {
    background-color: #009088 !important;
    border-color: #009088 !important;
    color: #fff !important;
    text-decoration: none;
}

.websila-oc-btn:focus {
    outline: 3px solid #00a89d66;
    outline-offset: 2px;
}

.websila-oc-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .websila-oc-notice {
        flex-direction: column;
        align-items: flex-start;
    }

    .websila-oc-btn {
        width: 100%;
        text-align: center;
    }
}
