.ws-retreat-shell,
.ws-retreat-shell * {
    box-sizing: border-box;
}

.ws-retreat-shell {
    width: 100%;
    max-width: none;
    margin: 24px 0;
    font-family: inherit;
    color: #6f5e53;
}

.ws-retreat-shell-wide {
    width: 100%;
    max-width: none;
}

.ws-retreat-card,
.ws-retreat-product-card,
.ws-retreat-modal-card {
    background: #f4f3f2;
    border: 1px solid #e2ddd9;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(83,65,52,.06);
    color: #6f5e53;
}

.ws-retreat-card + .ws-retreat-card {
    margin-top: 16px;
}

.ws-retreat-card h1,
.ws-retreat-card h2,
.ws-retreat-card h3,
.ws-retreat-product-card h3,
.ws-retreat-modal-card h2,
.ws-retreat-single h1,
.ws-retreat-section h3 {
    margin: 0 0 12px;
    color: #6f5e53;
    font-weight: 500;
    line-height: 1.2;
}

.ws-retreat-card h1,
.ws-retreat-single h1 {
    font-size: 28px;
}

.ws-retreat-card h2,
.ws-retreat-modal-card h2 {
    font-size: 26px;
}

.ws-retreat-card h3,
.ws-retreat-product-card h3,
.ws-retreat-section h3 {
    font-size: 22px;
}

.ws-retreat-card p,
.ws-retreat-card div,
.ws-retreat-card label,
.ws-retreat-card span,
.ws-retreat-card strong,
.ws-retreat-product-card p,
.ws-retreat-product-card div,
.ws-retreat-product-card label,
.ws-retreat-product-card span,
.ws-retreat-product-card strong,
.ws-retreat-modal-card p,
.ws-retreat-modal-card div,
.ws-retreat-modal-card label,
.ws-retreat-modal-card span,
.ws-retreat-modal-card strong {
    box-sizing: border-box;
}

.ws-retreat-card p,
.ws-retreat-meta,
.ws-retreat-single-meta,
.ws-retreat-section,
.ws-retreat-content {
    font-size: 16px;
    line-height: 1.55;
}

.ws-retreat-notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    border: 1px solid transparent;
}

.ws-retreat-notice--success {
    background: #e6f3e9;
    color: #3f6a4a;
    border-color: #c3dfca;
}

.ws-retreat-notice--error {
    background: #f6e4e4;
    color: #7c4343;
    border-color: #ebc5c5;
}

.ws-retreat-notice--info {
    background: #e8f0f8;
    color: #46627a;
    border-color: #cad9e7;
}

.ws-retreat-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ws-retreat-head p {
    margin: 0;
}

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

.ws-retreat-field {
    display: block;
    font-weight: 500;
    color: #6f5e53;
}

.ws-retreat-field--full,
.ws-retreat-consents,
.ws-retreat-actions {
    grid-column: 1 / -1;
}

.ws-retreat-field span,
.ws-retreat-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #6f5e53;
}

.ws-retreat-field input[type="text"],
.ws-retreat-field input[type="email"],
.ws-retreat-field input[type="url"],
.ws-retreat-field input[type="number"],
.ws-retreat-field input[type="date"],
.ws-retreat-field input[type="file"],
.ws-retreat-field textarea,
.ws-retreat-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfc8c2;
    border-radius: 12px;
    background: #fbfaf9;
    padding: 0 16px;
    color: #8d755e;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.ws-retreat-field textarea {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

.ws-retreat-field select {
    padding-right: 36px;
}

.ws-retreat-consents {
    margin: 16px 0 0;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.55);
    border: 1px solid #ddd4ce;
}

.ws-retreat-consents h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.ws-retreat-check {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #6f5e53;
}

.ws-retreat-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #cfc8c2;
    border-radius: 4px;
    background: #fff;
    display: grid;
    place-items: center;
    flex: 0 0 18px;
}

.ws-retreat-check input[type="checkbox"]:checked {
    background: #aa8f7a;
    border-color: #aa8f7a;
}

.ws-retreat-check input[type="checkbox"]:checked::after {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.ws-retreat-publication-fields {
    margin: 14px 0;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.45);
    border: 1px solid #e2ddd9;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}

.ws-retreat-publication-fields .ws-retreat-label {
    grid-column: 1 / -1;
}

.ws-retreat-check--inline {
    margin: 0;
}

.ws-retreat-link {
    color: #6f5e53;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.ws-retreat-link--missing {
    opacity: .75;
}

.ws-retreat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
}

.ws-retreat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: #8d7b6c;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.ws-retreat-btn:hover,
.ws-retreat-btn:focus {
    opacity: .95;
    color: #fff !important;
}

.ws-retreat-btn--primary {
    background: #aa8f7a;
}

.ws-retreat-btn--danger {
    background: #c78686;
}

.ws-retreat-status-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.ws-retreat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.ws-retreat-badge--info {
    background: #e8f0f8;
    color: #46627a;
}

.ws-retreat-badge--success {
    background: #e6f3e9;
    color: #3f6a4a;
}

.ws-retreat-badge--error {
    background: #f6e4e4;
    color: #7c4343;
}

.ws-retreat-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ws-retreat-product-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ws-retreat-product-card h3 a {
    color: inherit;
    text-decoration: none;
}

.ws-retreat-thumb {
    display: block;
    margin: -22px -22px 14px;
    height: 210px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: #ece8e5;
}

.ws-retreat-thumb img,
.ws-retreat-single-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ws-retreat-meta {
    font-size: 15px;
    color: #6f5e53;
}

.ws-retreat-single {
    width: 100%;
    max-width: none;
    margin: 24px 0;
    color: #6f5e53;
}

.ws-retreat-single-cover {
    height: 360px;
    margin: -28px -28px 24px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #ece8e5;
}

.ws-retreat-single-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.ws-retreat-single-meta span,
.ws-retreat-section {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,.58);
    border: 1px solid #ddd4ce;
}

.ws-retreat-section {
    margin: 16px 0;
}

.ws-retreat-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(83,65,52,.45);
}

.ws-retreat-modal.is-open {
    display: flex;
}

.ws-retreat-modal-card {
    position: relative;
    width: min(680px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: #f4f3f2;
}

.ws-retreat-modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #6f5e53;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ws-retreat-admin-box p {
    margin: 0 0 12px;
}

.ws-retreat-admin-consents {
    margin: 18px 0 0;
    padding: 14px;
    border: 1px solid #ddd4ce;
    border-radius: 10px;
    background: #fff;
}

@media (max-width: 1000px) {
    .ws-retreat-grid,
    .ws-retreat-products,
    .ws-retreat-public-grid,
    .ws-retreat-single-meta {
        grid-template-columns: 1fr;
    }

    .ws-retreat-status-card,
    .ws-retreat-head {
        grid-template-columns: 1fr;
        display: block;
    }

    .ws-retreat-head .ws-retreat-btn {
        margin-top: 14px;
    }

    .ws-retreat-publication-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ws-retreat-shell {
        margin: 16px 0;
    }

    .ws-retreat-card,
    .ws-retreat-product-card,
    .ws-retreat-modal-card {
        padding: 20px;
        border-radius: 16px;
    }

    .ws-retreat-card h1,
    .ws-retreat-single h1 {
        font-size: 24px;
    }

    .ws-retreat-card h2,
    .ws-retreat-modal-card h2 {
        font-size: 22px;
    }

    .ws-retreat-card h3,
    .ws-retreat-product-card h3,
    .ws-retreat-section h3 {
        font-size: 20px;
    }

    .ws-retreat-actions,
    .ws-retreat-btn {
        width: 100%;
    }

    .ws-retreat-btn {
        min-height: 48px;
    }

    .ws-retreat-thumb {
        margin: -20px -20px 14px;
        height: 180px;
    }

    .ws-retreat-single-cover {
        margin: -20px -20px 20px;
        height: 220px;
    }
}

/* Admin application queue — aligned with Women’s Soul seller application interface */
.ws-retreat-admin-page,
.ws-retreat-admin-page * {
    box-sizing: border-box;
}
.ws-retreat-admin-queue {
    width: 100%;
    max-width: 1100px;
}
.ws-retreat-admin-card {
    background: #fff;
    border: 1px solid #e6e1dd;
    border-radius: 18px;
    padding: 22px;
    margin: 0 0 18px;
    box-shadow: 0 8px 24px rgba(83,65,52,.05);
    color: #6f5e53;
}
.ws-retreat-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
}
.ws-retreat-admin-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    color: #6f5e53;
    font-weight: 600;
}
.ws-retreat-admin-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #e6e1dd;
    background: #f7f6f4;
    color: #7c6b60;
}
.ws-retreat-admin-badge--pending,
.ws-retreat-admin-badge--draft {
    background: #fff8ed;
    border-color: #efd8af;
    color: #9b6c2d;
}
.ws-retreat-admin-badge--approved {
    background: #e6f3e9;
    border-color: #bfdfc7;
    color: #4e7655;
}
.ws-retreat-admin-badge--rejected {
    background: #fff0ef;
    border-color: #f0c8c3;
    color: #a84b42;
}
.ws-retreat-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.ws-retreat-admin-grid > div {
    min-width: 0;
    border: 1px solid #eee9e5;
    background: #fbfaf9;
    border-radius: 14px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.45;
}
.ws-retreat-admin-grid strong {
    color: #6f5e53;
    font-weight: 700;
}
.ws-retreat-admin-full {
    grid-column: 1 / -1;
}
.ws-retreat-admin-consents {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}
.ws-retreat-admin-consents h3 {
    margin: 0 0 10px;
    color: #6f5e53;
    font-size: 16px;
}
.ws-retreat-admin-consents p {
    margin: 0 0 8px;
}
.ws-retreat-admin-form,
.ws-retreat-admin-delete {
    margin: 14px 0 0;
}
.ws-retreat-admin-form textarea {
    width: 100%;
    min-height: 100px;
    margin-top: 8px;
    border: 1px solid #cfc8c2;
    border-radius: 12px;
    padding: 12px;
    color: #6f5e53;
}
.ws-retreat-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.ws-retreat-admin-actions .button,
.ws-retreat-admin-delete .button {
    min-height: 36px;
    border-radius: 999px;
    padding-left: 14px;
    padding-right: 14px;
}
@media (max-width: 782px) {
    .ws-retreat-admin-head {
        display: block;
    }
    .ws-retreat-admin-head .ws-retreat-admin-badge {
        margin-top: 10px;
    }
    .ws-retreat-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.0.4 — retreat signups stats and auto-publish controls */
.ws-retreat-status-stats,
.ws-retreat-stats {
    grid-column: 1 / -1;
    width: 100%;
}
.ws-retreat-stats {
    margin: 16px 0 0;
}
.ws-retreat-stats h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #6f5e53;
}
.ws-retreat-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.ws-retreat-stat-card {
    background: rgba(255,255,255,.58);
    border: 1px solid #ddd4ce;
    border-radius: 14px;
    padding: 14px;
    min-width: 0;
}
.ws-retreat-stat-card span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #8d755e;
}
.ws-retreat-stat-card strong {
    display: block;
    font-size: 26px;
    line-height: 1;
    color: #6f5e53;
}
.ws-retreat-muted {
    color: #8d755e;
    font-size: 14px;
}
.ws-retreat-admin-check {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    margin: 14px 0 0;
    padding: 12px;
    border: 1px solid #eee9e5;
    border-radius: 14px;
    background: #fbfaf9;
    color: #6f5e53;
    max-width: 620px;
}
.ws-retreat-admin-check input[type="checkbox"] {
    margin-top: 2px;
}
@media (max-width: 1000px) {
    .ws-retreat-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .ws-retreat-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.0.5 — seller signup processing */
.ws-retreat-dashboard-card .ws-retreat-stats {
    margin: 0 0 18px;
}
.ws-retreat-actions--head {
    margin-top: 0;
    justify-content: flex-end;
}
.ws-retreat-signups-panel {
    margin-top: 16px;
}
.ws-retreat-signup-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.ws-retreat-signup-item {
    border: 1px solid #ddd4ce;
    border-radius: 16px;
    background: rgba(255,255,255,.58);
    overflow: hidden;
}
.ws-retreat-signup-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}
.ws-retreat-signup-item summary::-webkit-details-marker {
    display: none;
}
.ws-retreat-signup-item summary span:first-child {
    min-width: 0;
}
.ws-retreat-signup-item summary strong {
    display: block;
    color: #6f5e53;
    font-size: 16px;
}
.ws-retreat-signup-item summary small {
    display: block;
    margin-top: 3px;
    color: #8d755e;
    font-size: 13px;
}
.ws-retreat-signup-body {
    padding: 0 16px 16px;
    border-top: 1px solid #e8e1dc;
}
.ws-retreat-inline-form {
    margin: 14px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}
.ws-retreat-inline-form label {
    min-width: 220px;
    flex: 1 1 260px;
    color: #6f5e53;
}
.ws-retreat-inline-form select {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border: 1px solid #cfc8c2;
    border-radius: 12px;
    background: #fbfaf9;
    padding: 0 14px;
    color: #8d755e;
}
.ws-retreat-inline-form .ws-retreat-btn {
    min-height: 48px;
}
@media (max-width: 640px) {
    .ws-retreat-signup-item summary {
        display: grid;
        gap: 10px;
    }
    .ws-retreat-inline-form,
    .ws-retreat-inline-form .ws-retreat-btn,
    .ws-retreat-inline-form label {
        width: 100%;
    }
}

/* v1.0.6 — заявки внутри дашборда продавца ретритов */
.ws-retreat-dashboard-card {
    overflow: hidden;
}
.ws-retreat-dashboard-head {
    align-items: flex-start;
    margin-bottom: 18px;
}
.ws-retreat-dashboard-stats {
    margin: 0 0 20px;
    width: 100%;
}
.ws-retreat-dashboard-stats .ws-retreat-stats {
    margin: 0;
    padding: 16px;
    border: 1px solid #e4ddd8;
    border-radius: 16px;
    background: rgba(255,255,255,.54);
}
.ws-retreat-dashboard-signups {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e4ddd8;
}
.ws-retreat-signups-panel--embedded {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.ws-retreat-signups-panel--embedded .ws-retreat-head {
    margin-bottom: 14px;
}
.ws-retreat-signup-item {
    background: #fff;
}
.ws-retreat-signup-body .ws-retreat-admin-grid {
    margin-top: 14px;
}
.ws-retreat-inline-form {
    padding-top: 14px;
    border-top: 1px solid #e8e1dc;
}
.ws-retreat-inline-form__comment {
    flex: 1 1 100%;
    width: 100%;
}
.ws-retreat-inline-form textarea,
.ws-retreat-admin-form textarea {
    width: 100%;
    min-height: 96px;
    margin-top: 8px;
    border: 1px solid #cfc8c2;
    border-radius: 12px;
    background: #fbfaf9;
    padding: 12px 14px;
    color: #8d755e;
    font: inherit;
    resize: vertical;
}
.ws-retreat-inline-form select,
.ws-retreat-inline-form textarea {
    display: block;
}
.ws-retreat-inline-form .ws-retreat-btn--primary {
    margin-left: auto;
}
.ws-retreat-products {
    margin-top: 2px;
}
@media (max-width: 1000px) {
    .ws-retreat-dashboard-head {
        display: block;
    }
    .ws-retreat-actions--head {
        justify-content: flex-start;
        margin-top: 14px;
    }
}
@media (max-width: 640px) {
    .ws-retreat-dashboard-stats .ws-retreat-stats {
        padding: 14px;
    }
    .ws-retreat-actions--head .ws-retreat-btn,
    .ws-retreat-inline-form .ws-retreat-btn--primary {
        width: 100%;
        margin-left: 0;
    }
}
