/* =====================================================================
   Restaurant Advertisements (module 700110) — restaurant + admin consoles.
   ra- prefix. Layout primitives (om-page/om-header/om-tab/om-table/om-empty)
   come from order-management.css; this sheet only adds the ads-specific bits,
   styled to match the shared v2 tokens (an-input / rp-btn / om-btn).
   ===================================================================== */

.ra-wallet {
    background: #171D1B;
    border: 1px solid #26302D;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ra-card {
    background: #171D1B;
    border: 1px solid #26302D;
    border-radius: 18px;
    padding: 16px 18px;
}

.ra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.ra-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ra-ad-card {
    background: #171D1B;
    border: 1px solid #26302D;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    gap: 14px;
}

.ra-thumb-wrap {
    flex: 0 0 120px;
}

.ra-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.ra-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #26302D;
    color: #78827F;
    font-size: 22px;
}

/* Field labels mirror .an-field-label (admin-notifications.css) */
.ra-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #B7C0BD;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 16px 0 6px;
}

.ra-field-label i {
    width: 14px;
    color: #2DD4BF;
    font-size: 11px;
}

/* Inputs mirror .an-input */
.ra-input {
    width: 100%;
    background: #070B0A;
    border: 1px solid #26302D;
    border-radius: 12px;
    padding: 10px 14px;
    color: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.ra-input:focus {
    border-color: #22C55E;
}

.ra-input::placeholder { color: #78827F; }

textarea.ra-input {
    resize: vertical;
    min-height: 64px;
    line-height: 1.5;
}

/* Buttons mirror .rp-btn / .om-btn (gradient primary, translucent danger) */
.ra-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #FFFFFF;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ra-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ra-btn--primary {
    background: linear-gradient(135deg, #2DD4BF, #22C55E);
    color: #070B0A;
    box-shadow: 0 2px 8px rgba(45, 212, 191, 0.2);
}
.ra-btn--primary:hover { background: linear-gradient(135deg, #14B8A6, #16A34A); }
.ra-btn--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.ra-btn--danger:hover { background: rgba(239, 68, 68, 0.24); }
.ra-btn--ghost {
    background: transparent;
    border: 1px solid #26302D;
    color: #B7C0BD;
}
.ra-btn--ghost:hover { border-color: #2DD4BF; color: #2DD4BF; }

.ra-dropzone {
    border-radius: 12px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ra-dropzone-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.ra-dropzone-remove {
    position: absolute;
    top: 8px;
    right: 8px;
}

.ra-chip {
    padding: 7px 14px;
    border-radius: 999px;
}

.ra-insufficient {
    margin-top: 8px;
    font-size: 12px;
    color: #FACC15;
    background: #FACC1522;
    border-radius: 8px;
    padding: 8px 10px;
}

.ra-pricing-note {
    margin-top: 14px;
    font-size: 12px;
    color: #78827F;
    line-height: 1.6;
    border-top: 1px solid #26302D;
    padding-top: 12px;
}

/* mobile-responsive card rule keeps bordered cards in check on phones */
@media (max-width: 768px) {
    .ra-grid { grid-template-columns: 1fr; }
    .ra-grid-2 { grid-template-columns: 1fr; }
    .ra-ad-card { flex-direction: column; }
    .ra-thumb-wrap { flex: none; }
    .ra-thumb { width: 100%; height: 140px; }
}