/* The theme renders the manager page title above the shortcode.
   The panel owns its own heading, so hide only the common WordPress page-title elements
   while this stylesheet is loaded on the manager page. */
.entry-header .entry-title,
.wp-block-post-title {
    display: none !important;
}

.lo-manager {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 18px 56px;
    color: #172033;
}

.lo-manager * { box-sizing: border-box; }

.lo-manager__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.lo-manager__header h2,
.lo-form-title h3 { margin-top: 0; }

.lo-manager__header p { margin-bottom: 0; }

.lo-manager--login {
    max-width: 520px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    margin-top: 48px;
    padding: 32px;
}

.lo-manager--login input[type="text"],
.lo-manager--login input[type="password"] {
    width: 100%;
}

.lo-actions { margin-bottom: 22px; }

.lo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.1;
}

.lo-button--primary {
    background: #0b4f8a;
    color: #fff;
}

.lo-button--secondary {
    background: #fff;
    color: #0b4f8a;
    border-color: #b9c3cf;
}

.lo-button--danger {
    background: #fff;
    color: #b42318;
    border-color: #f0b8b2;
}

.lo-button--large { min-height: 48px; padding: 12px 20px; }

.lo-notice {
    border-radius: 10px;
    padding: 13px 16px;
    margin-bottom: 22px;
    font-weight: 600;
}

.lo-notice--success { background: #e9f8ef; color: #146c43; }
.lo-notice--error { background: #fff0ef; color: #9f1c14; }

.lo-offer-list { display: grid; gap: 14px; }

.lo-offer-row {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid #d6dce4;
    border-radius: 14px;
    padding: 16px;
}

.lo-offer-row__media {
    width: 92px;
    height: 76px;
    border-radius: 9px;
    background: #f4f6f8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lo-offer-row__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lo-image-placeholder {
    padding: 8px;
    font-size: 11px;
    text-align: center;
    color: #667085;
}

.lo-offer-row__eyebrow {
    font-size: 12px;
    font-weight: 800;
    color: #667085;
}

.lo-offer-row__main h3 { margin: 3px 0 5px; }
.lo-offer-row__price { margin: 0; font-weight: 700; }
.lo-offer-row__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lo-offer-row__actions form { margin: 0; }

.lo-empty {
    background: #f7f9fb;
    border: 1px dashed #bdc7d3;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
}

.lo-form-wrap {
    background: #fff;
    border: 1px solid #d6dce4;
    border-radius: 16px;
    padding: 28px;
}

.lo-form-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.lo-form-title h3 { margin-bottom: 0; }

.lo-form { display: grid; gap: 18px; }
.lo-field { display: grid; gap: 7px; }
.lo-field label { font-weight: 700; }
.lo-field small { color: #667085; }

.lo-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lo-form input[type="text"],
.lo-form input[type="number"],
.lo-form input[type="date"],
.lo-form input[type="file"],
.lo-form select,
.lo-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #aeb8c5;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: #172033;
    font: inherit;
}

.lo-form textarea { min-height: 110px; resize: vertical; }

.lo-current-image {
    display: grid;
    gap: 10px;
    max-width: 300px;
}

.lo-current-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #d6dce4;
    border-radius: 10px;
}

.lo-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

@media (max-width: 760px) {
    .lo-manager__header,
    .lo-form-title { display: grid; }
    .lo-offer-row { grid-template-columns: 72px 1fr; }
    .lo-offer-row__media { width: 72px; height: 64px; }
    .lo-offer-row__actions { grid-column: 1 / -1; }
    .lo-field-grid { grid-template-columns: 1fr; }
    .lo-form-wrap { padding: 20px; }
    .lo-button { width: 100%; }
    .lo-offer-row__actions form { width: 100%; }
}
