/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f4ee;
    color: #222;
}


/* =========================
   HEADER
========================= */

.seller-header {
    min-height: 76px;
    padding: 12px 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    background: #fffdf9;
    border-bottom: 1px solid #e4dfd6;
}

.brand {
    font-size: 20px;
    font-weight: 700;
}

.brand span {
    margin-left: 12px;

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #777;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.seller-nav-btn,
.seller-account-btn,
.seller-dashboard-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    min-height: 40px;
    height: 40px;
    padding: 8px 16px;

    border: 1px solid #d8d2c8;
    border-radius: 999px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.seller-account-btn {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-nav-btn:hover,
.seller-account-btn:hover,
.seller-dashboard-label:hover {
    border-color: #222;
    background: #faf8f3;
    color: #222;
}

.seller-nav-btn.is-active,
.seller-account-btn.is-active,
.seller-dashboard-label.is-active {
    background: #efeae1;
    border-color: #cfc8bb;
    color: #111;
}


/* =========================
   DASHBOARD
========================= */

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 100px;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 42px;
}

.eyebrow {
    margin-bottom: 12px;

    font-size: 12px;
    letter-spacing: 4px;
    color: #777;
}

h1 {
    font-size: 48px;
    line-height: 1.05;
    margin-bottom: 12px;
}

.subtitle {
    color: #777;
    font-size: 16px;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.secondary-action-btn {
    border: 1px solid #d8d2c8;
    border-radius: 10px;
    background: #fff;
    color: #222;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.secondary-action-btn:hover {
    border-color: #222;
    background: #faf8f3;
}

.listings-section .section-heading {
    border-bottom: none;
    padding-bottom: 14px;
}

.listing-type-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 28px 18px;
    border-bottom: 1px solid #e4dfd6;
}

.listing-type-tabs .orders-sub-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    line-height: 1.2;
    box-sizing: border-box;
}


/* =========================
   BUTTONS
========================= */

.primary-btn,
.submit-btn {
    border: none;
    border-radius: 10px;

    background: #222;
    color: white;

    padding: 14px 22px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.primary-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    background: #000;
}


/* =========================
   STATS
========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;

    margin-bottom: 55px;
}

.stat-card {
    background: #fffdf9;

    border: 1px solid #e4dfd6;
    border-radius: 14px;

    padding: 24px;
}

.stat-card span {
    display: block;

    font-size: 13px;
    color: #777;

    margin-bottom: 14px;
}

.stat-card strong {
    font-size: 32px;
}


/* =========================
   LISTINGS
========================= */

.listings-section {
    background: #fffdf9;

    border: 1px solid #e4dfd6;
    border-radius: 16px;

    overflow: hidden;
}

.section-heading {
    padding: 24px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #e4dfd6;
}

.section-heading h2 {
    font-size: 20px;
}

.section-heading span {
    font-size: 13px;
    color: #777;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 16px 20px;

    text-align: left;

    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #777;

    background: #faf8f3;
}

td {
    padding: 20px;

    border-top: 1px solid #eee9e0;

    font-size: 14px;
}

td:first-child {
    font-weight: 600;
}

.status {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    background: #e8f2e8;

    color: #356035;

    font-size: 12px;
    font-weight: 600;
}


/* =========================
   EMPTY STATE
========================= */

.empty-state {
    padding: 70px 30px;

    text-align: center;

    color: #777;
}

.empty-state h3 {
    color: #222;
    margin-bottom: 8px;
}


/* =========================
   MODAL
========================= */

.modal {
    position: fixed;

    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.35);

    z-index: 100;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;

    overflow-y: auto;

    background: #fffdf9;

    border-radius: 18px;

    padding: 34px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 28px;
}

.close-btn {
    border: none;
    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    color: #777;
}


/* =========================
   FORM
========================= */

.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

label,
.field-label {
    font-size: 13px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #dcd6cc;
    border-radius: 9px;

    background: white;

    font-size: 14px;
    color: #222;
    font-family: inherit;

    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #222;
}

.prefixed-input {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #dcd6cc;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}

.prefixed-input:focus-within {
    border-color: #222;
}

.prefixed-input-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #f7f5f1;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    border-right: 1px solid #e4dfd6;
    white-space: nowrap;
}

.prefixed-input input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.prefixed-input input:focus {
    border: none;
    outline: none;
}

.auto-hint {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8378;
}

.city-multiselect {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: visible;
}

.city-multiselect .portal-dropdown {
    z-index: 30;
}

.city-multiselect .portal-dropdown.open {
    z-index: 40;
}

.city-multiselect .portal-dropdown-panel {
    z-index: 50;
    min-width: 220px;
    width: max-content;
    right: auto;
}

.city-chip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #dcd6cc;
    border-radius: 9px;
    background: #fff;
}

.city-chip-list:focus-within {
    border-color: #222;
}

.city-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 12px;
    border-radius: 999px;
    background: #f3f0ea;
    border: 1px solid #e4dfd6;
    color: #222;
    font-size: 13px;
    font-weight: 600;
}

.city-chip-remove {
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #666;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.city-chip-remove:hover {
    background: #e4dfd6;
    color: #222;
}

.city-chip-placeholder {
    color: #888;
    font-size: 14px;
}

.city-multiselect .portal-dropdown-trigger {
    width: auto;
    min-height: 42px;
    padding: 10px 14px;
}

#listingModal input[readonly] {
    background: #f7f5f1;
    color: #222;
    cursor: default;
}

.submit-btn {
    width: 100%;

    margin-top: 8px;

    padding: 15px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .seller-header {
        padding: 14px 20px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .seller-nav-btn,
    .seller-account-btn,
    .seller-dashboard-label {
        height: 36px;
        min-height: 36px;
        max-width: 100%;
        font-size: 13px;
        padding: 8px 12px;
    }

    .dashboard {
        padding: 40px 20px 70px;
    }

    .dashboard-heading {
        display: block;
    }

.dashboard-heading .primary-btn {
        margin-top: 0;
    }

    .dashboard-actions {
        margin-top: 25px;
        width: 100%;
    }

    .dashboard-actions .primary-btn,
    .dashboard-actions .secondary-action-btn {
        width: 100%;
    }

    .listing-type-tabs {
        padding: 0 20px 16px;
        gap: 8px;
    }

    .listing-type-tabs .orders-sub-tab {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .service-contact-select-wrap {
        max-width: 100%;
    }

    h1 {
        font-size: 40px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

}/* =========================
   ROW ACTIONS
========================= */

.row-actions {
    display: flex;
    gap: 8px;
}

.edit-btn,
.delete-btn {
    border: 1px solid #ddd8ce;
    background: #fffdf9;
    color: #222;

    padding: 7px 11px;

    border-radius: 7px;

    font-size: 12px;

    cursor: pointer;

    transition: 0.2s ease;
}

.edit-btn:hover {
    background: #222;
    color: white;
}

.delete-btn {
    color: #a33;
}

.delete-btn:hover {
    background: #a33;
    color: white;
}


.image-hint,
.image-count {
    font-size: 13px;
    color: #777;
}

.image-hint {
    margin-bottom: 2px;
}

.product-images-group {
    position: relative;
    margin-bottom: 14px;
}

input.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    background: transparent;
}

.add-photos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
}

.add-photos-btn svg {
    width: 18px;
    height: 18px;
}

.photo-guide {
    margin: 6px 0 4px;
}

.photo-guide-heading {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.photo-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.photo-guide-card {
    background: #f7f4ee;
    border: 1px solid #e4dfd6;
    border-radius: 12px;
    padding: 10px 10px 12px;
}

.photo-guide-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    margin-bottom: 8px;
    background: #fffdf9;
    border: 1px solid #ece7de;
    border-radius: 9px;
}

.photo-guide-art svg {
    width: 78px;
    height: 78px;
}

.photo-guide-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.photo-guide-card p {
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

.photo-guide-tip {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #777;
}

.image-preview-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;

    margin-top: 12px;
}

.image-preview {
    position: relative;

    aspect-ratio: 1;

    border: 1px solid #e4dfd6;
    border-radius: 10px;

    overflow: hidden;

    background: #f3f0ea;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f3f0ea;
}

.image-remove-btn,
.service-image-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;

    width: 22px;
    height: 22px;

    border: none;
    border-radius: 50%;

    background: #222;
    color: #fff;

    font-size: 14px;
    line-height: 22px;

    cursor: pointer;
}

.image-count {
    margin-top: 10px;
}

.image-status {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
}

.review-heading {
    font-size: 16px;
    margin: 10px 0 16px;
}

.review-notice {
    background: #f7f4ee;
    border: 1px solid #e4dfd6;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #444;
    margin-bottom: 22px;
}

.secondary-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #d8d2c8;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.secondary-btn:hover {
    border-color: #222;
}

@media (max-width: 700px) {

    .image-preview-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-guide-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================
   ACCOUNT PAGE
========================= */

.profile-card {
    background: #fffdf9;

    border: 1px solid #e4dfd6;
    border-radius: 16px;

    padding: 28px 32px;

    margin-bottom: 24px;
}

.profile-card h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.profile-card p {
    color: #777;
    font-size: 14px;
    margin-bottom: 28px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    margin-top: 20px;
}

.logout-btn {
    border: 1px solid #d8d2c8;
    border-radius: 10px;

    background: #fff;
    color: #555;

    padding: 12px 22px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.logout-btn:hover {
    border-color: #222;
    background: #faf8f3;
    color: #222;
}

.profile-session-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.delete-account-btn {
    border: 1px solid #e4dfd6;
    border-radius: 10px;
    background: #fff;
    color: #8a4a4a;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.delete-account-btn:hover {
    border-color: #c9a0a0;
    background: #fff8f8;
    color: #6b3333;
}

.delete-account-modal-content {
    max-width: 520px;
}

.delete-account-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.delete-account-warning {
    color: #222;
    font-weight: 600;
}

.delete-account-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.delete-account-confirm-btn {
    border: none;
    border-radius: 10px;
    background: #6b3333;
    color: #fff;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.delete-account-confirm-btn:hover:not(:disabled) {
    background: #522626;
}

.delete-account-confirm-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.business-pincode-add {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.business-pincode-add input {
    flex: 1 1 160px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #dcd6cc;
    border-radius: 9px;
    font-size: 14px;
    font-family: inherit;
}

.business-pincode-add input:focus {
    outline: none;
    border-color: #222;
}

.business-pincode-add .secondary-action-btn {
    min-height: 42px;
    padding: 10px 18px;
}

.business-location-readonly {
    pointer-events: none;
}

.field-error {
    color: #8a4a4a;
}

.listing-save-error {
    margin-top: 8px;
}

.portal-native-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 36px 12px 14px;
    border: 1px solid #dcd6cc;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #666 50%),
        linear-gradient(135deg, #666 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.portal-native-select:focus {
    outline: none;
    border-color: #222;
}

.size-weight-note {
    margin-bottom: 0;
}


/* =========================
   LISTING PRODUCT EDITOR
========================= */

.listing-modal-content {
    max-width: 760px;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
}

.listing-modal-header {
    padding: 28px 32px 18px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-bottom: 1px solid #e4dfd6;
}

.listing-modal-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #777;
    font-weight: 400;
}

.listing-modal-form,
#listingForm.listing-modal-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.listing-modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.listing-modal-scroll .product-images-group,
.listing-modal-scroll #stepUploadExtras {
    padding: 24px 32px 28px;
}

#listingForm:has(#stepReview:not([hidden])) .product-images-group,
#listingForm:has(#stepReview:not([hidden])) #stepUploadExtras {
    display: none;
}

#stepReview[hidden] {
    display: none !important;
}

.listing-editor-body {
    padding: 22px 32px 28px;
}

.listing-editor-footer {
    display: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 16px 32px 24px;
    border-top: 1px solid #e4dfd6;
    background: #fffdf9;
}

#listingForm:has(#stepReview:not([hidden])) .listing-editor-footer {
    display: flex;
}

.listing-footer-btn {
    width: auto;
    min-width: 140px;
    margin-top: 0;
}

.listing-footer-btn--primary {
    min-width: 160px;
}

.listing-section {
    margin-bottom: 28px;
    padding-bottom: 4px;
}

.listing-section-header {
    margin-bottom: 18px;
}

.listing-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 6px;
}

.listing-section-lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #777;
}

.listing-section--primary {
    padding: 20px 20px 8px;
    border: 1px solid #dcd6cc;
    border-radius: 14px;
    background: #fff;
}

.listing-section--size-weight {
    border-color: #cfc8bb;
    background: #fffdf9;
}

.listing-size-weight-group {
    padding: 14px 16px;
    border: 1px solid #e4dfd6;
    border-radius: 12px;
    background: #faf8f3;
}

.form-group--measurement-custom {
    margin-top: 12px;
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid #e8e2d8;
}

.form-group--measurement-custom[hidden] {
    display: none;
}

.listing-field-storage--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.listing-structured-view {
    margin-top: 10px;
}

.listing-structured-view--active {
    margin-top: 0;
}

.listing-one-col-bullets,
.listing-two-col-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.listing-one-col-bullets li,
.listing-two-col-bullets li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 14px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.listing-one-col-bullets li::before,
.listing-two-col-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8a8276;
}

.listing-item-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.listing-item-input {
    display: block;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
    border: none;
    background: transparent;
    padding: 2px 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #222;
    line-height: 1.45;
    white-space: nowrap;
}

.listing-item-input:focus {
    outline: none;
    box-shadow: 0 1px 0 0 #c9a227;
}

.listing-structured-view .listing-item-input,
.listing-compliance-grid input,
.listing-compliance-grid textarea {
    font-size: 14px;
    line-height: 1.45;
}

.listing-two-col-bullets {
    column-count: 2;
    column-gap: 28px;
    column-rule: 1px solid #e0dcd4;
}

.listing-one-col-bullets {
    column-count: 1;
}

@media (max-width: 720px) {
    .listing-two-col-bullets {
        column-count: 1;
        column-rule: none;
    }
}

.listing-compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.listing-fact-field--wide {
    grid-column: 1 / -1;
}

.listing-fact-field label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.02em;
}

.listing-success-modal {
    max-width: 440px;
    padding: 32px 34px 30px;
    text-align: center;
}

.listing-success-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

.listing-success-message {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.listing-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.listing-success-actions .submit-btn,
.listing-success-actions .secondary-btn {
    width: 100%;
    justify-content: center;
}

.business-location-resolved {
    margin: 10px 0 0;
    padding: 12px 14px;
    border: 1px solid #e4dfd6;
    border-radius: 9px;
    background: #faf8f3;
    font-size: 14px;
    line-height: 1.45;
    color: #444;
}

.business-location-resolved strong {
    font-weight: 700;
    color: #222;
}

@media (max-width: 640px) {
    .listing-compliance-grid {
        grid-template-columns: 1fr;
    }
}

.listing-section--readonly {
    padding: 18px 20px;
    border: 1px dashed #dcd6cc;
    border-radius: 14px;
    background: #f7f5f1;
}


.listing-section--secondary {
    padding: 4px 0 0;
}

.listing-subsection {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #ece7de;
    border-radius: 12px;
    background: #fffdf9;
}

.listing-subsection-title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
}

.listing-field--soft label {
    color: #555;
    font-weight: 600;
}

.listing-field--soft input,
.listing-field--soft textarea {
    background: #fff;
    border-color: #e4dfd6;
}

.listing-field--readonly label {
    color: #666;
}

.field-required {
    margin-left: 2px;
    color: #8a4a4a;
    font-weight: 700;
}

.listing-section--collapsible {
    margin-bottom: 12px;
    border: 1px solid #e4dfd6;
    border-radius: 14px;
    background: #faf8f3;
    overflow: hidden;
}

.listing-section--collapsible summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.listing-section--collapsible summary::-webkit-details-marker {
    display: none;
}

.listing-section-summary-hint {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.listing-section-collapsible-body {
    padding: 0 20px 20px;
    border-top: 1px solid #ece7de;
}

.listing-section--collapsible[open] summary {
    border-bottom: 1px solid #ece7de;
    background: #fffdf9;
}

#stepReview .review-notice {
    margin-bottom: 20px;
}

#listingModal.modal {
    padding: 20px;
    align-items: center;
}

#listingModal .modal-content.listing-modal-content {
    overflow: hidden;
}

@media (max-width: 700px) {

    .listing-modal-content {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    #listingModal.modal {
        padding: 12px;
    }

    .listing-modal-header,
    .listing-editor-body,
    .listing-editor-footer,
    .listing-modal-scroll .product-images-group,
    .listing-modal-scroll #stepUploadExtras {
        padding-left: 20px;
        padding-right: 20px;
    }

    .listing-editor-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .listing-footer-btn,
    .listing-footer-btn--primary {
        width: 100%;
        min-width: 0;
    }

    .listing-section--primary {
        padding: 16px 14px 6px;
    }

}

.logout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

input[readonly] {
    background: #f3f0ea;
    color: #555;
    cursor: not-allowed;
}

.toast {
    position: fixed;

    left: 50%;
    bottom: 28px;

    transform: translateX(-50%) translateY(16px);

    min-width: 180px;

    padding: 12px 18px;

    border-radius: 10px;

    background: #222;
    color: #fff;

    font-size: 14px;
    font-weight: 600;
    text-align: center;

    opacity: 0;
    pointer-events: none;

    z-index: 200;

    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: #a33;
}


/* =========================
   SELLER MY ORDERS
========================= */

.seller-orders-page .back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.seller-orders-page .back-link:hover {
    color: #222;
}

.orders-main-tabs,
.orders-sub-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.orders-main-tabs {
    margin-bottom: 22px;
}

.orders-sub-tabs {
    margin-bottom: 24px;
}

.orders-main-tab,
.orders-sub-tab {
    border: 1px solid #d8d2c8;
    background: #fffdf9;
    color: #555;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.orders-main-tab.active,
.orders-sub-tab.active {
    background: #222;
    border-color: #222;
    color: #fff;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-summary-card,
.order-detail-card {
    background: #fffdf9;
    border: 1px solid #e4dfd6;
    border-radius: 16px;
    padding: 24px;
}

.order-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.order-id-label {
    font-size: 11px;
    letter-spacing: 1.4px;
    color: #888;
    margin-bottom: 6px;
}

.order-summary-card h2,
.order-detail-card h2 {
    font-size: 26px;
    margin: 0;
}

.order-meta {
    margin: 12px 0 0;
    color: #666;
    font-size: 14px;
}

.order-summary-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.view-order-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.view-order-btn:hover {
    background: #000;
}

.status-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: #eee9df;
    color: #333;
    white-space: nowrap;
}

.status-pill.status-delivered,
.status-pill.status-returned {
    background: #e7f0e4;
    color: #2c5a2c;
}

.status-pill.status-cancelled {
    background: #f3e6e4;
    color: #7a3b32;
}

.orders-empty {
    padding: 48px 28px;
    background: #fffdf9;
    border: 1px solid #e4dfd6;
    border-radius: 16px;
    text-align: center;
}

.orders-empty h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.orders-empty p {
    color: #777;
}

.order-return-reason {
    color: #555;
    margin: 12px 0 0;
}

.order-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-detail-block {
    margin-top: 24px;
}

.order-detail-block h3 {
    font-size: 16px;
    margin-bottom: 14px;
}

.order-detail-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee9df;
}

.order-detail-item:last-child {
    border-bottom: none;
}

.order-item-photo {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: #f3f0ea;
}

.order-item-photo.placeholder {
    display: block;
}

.order-detail-item-info h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.order-detail-item-info p {
    margin: 0 0 4px;
    color: #777;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee9df;
    font-size: 15px;
}

.summary-total strong {
    font-size: 18px;
}

.field-help {
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #777;
    font-weight: 400;
}

.choice-row {
    display: flex;
    gap: 10px;
}

.choice-btn {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d8d2c8;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.choice-btn.active {
    background: #222;
    border-color: #222;
    color: #fff;
}

.service-modal-content {
    max-width: 640px;
}

.add-service-images-btn {
    width: 100%;
    margin-top: 4px;
}

.service-list-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-list-thumb,
.service-list-thumb-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f0ea;
    border: 1px solid #e4dfd6;
    flex-shrink: 0;
}

.service-contact-select-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 220px;
    vertical-align: middle;
}

.service-contact-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    margin-top: -5px;
    border-right: 1.5px solid #666;
    border-bottom: 1.5px solid #666;
    transform: rotate(45deg);
    pointer-events: none;
}

.service-contact-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    width: 100%;
    min-width: 160px;
    min-height: 40px;
    padding: 10px 36px 10px 14px;
    border: 1px solid #dcd6cc;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.service-contact-select:hover:not(:disabled) {
    border-color: #222;
    background: #fffdf9;
}

.service-contact-select:focus {
    outline: none;
    border-color: #222;
    background: #fffdf9;
}

.service-contact-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f7f5f1;
}

.service-contact-missing {
    color: #888;
    font-size: 13px;
}

.service-category-row {
    margin-bottom: 20px;
}

.portal-dropdown {
    position: relative;
}

.portal-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #dcd6cc;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.portal-dropdown-trigger::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 1.5px solid #666;
    border-bottom: 1.5px solid #666;
    transform: rotate(45deg) translateY(-2px);
    flex-shrink: 0;
}

.portal-dropdown-trigger:hover,
.portal-dropdown.open .portal-dropdown-trigger {
    border-color: #222;
    background: #fffdf9;
}

.portal-dropdown-trigger.has-value {
    color: #222;
}

.portal-dropdown.disabled .portal-dropdown-trigger,
.portal-dropdown-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f7f5f1;
}

.portal-dropdown.disabled .portal-dropdown-trigger:hover {
    border-color: #dcd6cc;
    background: #f7f5f1;
}

.portal-dropdown-placeholder {
    color: #888;
}

.portal-dropdown-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portal-pet-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f0ea;
    border: 1px solid #e4dfd6;
    font-size: 12px;
    font-weight: 600;
}

.portal-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
    background: #fffdf9;
    border: 1px solid #e4dfd6;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.portal-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #222;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.portal-dropdown-option:hover,
.portal-dropdown-option.active {
    background: #f3f0ea;
}

.portal-check {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d8d2c8;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
}

.portal-dropdown-option.active .portal-check {
    background: #222;
    border-color: #222;
    box-shadow: inset 0 0 0 2px #fff;
}

@media (max-width: 700px) {

    .service-category-row {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .order-summary-top,
    .order-summary-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-detail-item {
        grid-template-columns: 64px 1fr;
    }

    .order-detail-item strong {
        grid-column: 2;
    }

}


.contact-cards-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.contact-cards-heading p {
    margin-bottom: 0;
}

.contact-card-item {
    background: #fff;
    border: 1px solid #e4dfd6;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 12px;
}

.contact-card-item dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.contact-card-item dt {
    color: #888;
    font-size: 12px;
    font-weight: 600;
}

.contact-card-item dd {
    font-size: 14px;
    color: #222;
    word-break: break-word;
}

.contact-card-empty-link {
    color: #222;
    font-weight: 600;
}

@media (max-width: 700px) {

    .contact-cards-heading {
        flex-direction: column;
    }

    .contact-card-item dl {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }

}