.ws-svs-shell {
    max-width: 840px;
    margin: 34px auto;
    font-family: inherit;
}

.ws-svs-shell-wide {
    max-width: 1120px;
}

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

.ws-svs-card + .ws-svs-card,
.ws-svs-application-card + .ws-svs-application-card {
    margin-top: 16px;
}

.ws-svs-title,
.ws-svs-subtitle {
    margin: 0;
    color: #6f5e53;
    font-weight: 500;
    line-height: 1.2;
}

.ws-svs-title {
    font-size: 28px;
    margin-bottom: 14px;
}

.ws-svs-subtitle {
    font-size: 22px;
    margin-bottom: 12px;
}

.ws-svs-text,
.ws-svs-meta,
.ws-svs-card p,
.ws-svs-card div,
.ws-svs-card label,
.ws-svs-card span,
.ws-svs-card strong,
.ws-svs-application-card p,
.ws-svs-application-card div,
.ws-svs-application-card label,
.ws-svs-application-card span,
.ws-svs-application-card strong,
.ws-svs-product-card p,
.ws-svs-product-card div,
.ws-svs-product-card label,
.ws-svs-product-card span,
.ws-svs-product-card strong {
    box-sizing: border-box;
    color: inherit;
}

.ws-svs-text,
.ws-svs-meta {
    font-size: 16px;
    line-height: 1.55;
}

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

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

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

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

.ws-svs-status-box {
    padding: 14px 16px;
    border-radius: 10px;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
}

.ws-svs-status-box-pending {
    background: #fbf2df;
    color: #886b2f;
    border: 1px solid #ead7a8;
}

.ws-svs-status-box-approved {
    background: #e6f3e9;
    color: #3f6a4a;
    border: 1px solid #c3dfca;
}

.ws-svs-status-box-rejected {
    background: #f6e4e4;
    color: #7c4343;
    border: 1px solid #ebc5c5;
}

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

.ws-svs-grid-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ws-svs-full {
    grid-column: 1 / -1;
}

.ws-svs-form {
    display: grid;
    gap: 16px;
}

.ws-svs-form label,
.ws-svs-label {
    display: block;
    font-weight: 500;
    color: #6f5e53;
}

.ws-svs-form label span,
.ws-svs-label {
    display: block;
    margin-bottom: 8px;
}

.ws-svs-form input[type="text"],
.ws-svs-form input[type="email"],
.ws-svs-form input[type="url"],
.ws-svs-form input[type="number"],
.ws-svs-form input[type="file"],
.ws-svs-form select,
.ws-svs-form textarea {
    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,0.65);
}

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

.ws-svs-form input[readonly] {
    background: #ece8e5;
}

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

.ws-svs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: #8d7b6c;
    color: #ffffff !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, 0.12);
}

.ws-svs-btn:hover,
.ws-svs-btn:focus {
    opacity: 0.95;
    color: #ffffff !important;
}

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

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

.ws-svs-note {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.58);
    border: 1px solid #ddd4ce;
    line-height: 1.55;
}

.ws-svs-headline {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ws-svs-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-svs-badge-pending {
    background: #fbf2df;
    color: #886b2f;
}

.ws-svs-badge-approved {
    background: #e6f3e9;
    color: #3f6a4a;
}

.ws-svs-badge-rejected {
    background: #f6e4e4;
    color: #7c4343;
}

.ws-svs-mini-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.ws-svs-mini-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.58);
    border: 1px solid #ddd4ce;
}

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

.ws-svs-product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
}

.ws-svs-product-card form {
    margin: 0;
}

.ws-svs-product-card .ws-svs-actions {
    margin-top: auto;
}

.ws-svs-thumb,
.ws-svs-thumb-preview {
    margin-bottom: 12px;
}

.ws-svs-thumb img,
.ws-svs-thumb-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}

.ws-svs-meta .woocommerce-Price-amount,
.ws-svs-meta .woocommerce-Price-currencySymbol {
    color: inherit;
}

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

.ws-svs-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.58);
    border: 1px solid #ddd4ce;
}

.ws-svs-check input {
    width: auto !important;
    min-height: 0 !important;
    margin: 0;
}

@media (max-width: 900px) {
    .ws-svs-products {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .ws-svs-shell,
    .ws-svs-shell-wide {
        padding: 0 16px;
    }

    .ws-svs-grid,
    .ws-svs-grid-small,
    .ws-svs-products,
    .ws-svs-checks {
        grid-template-columns: 1fr;
    }

    .ws-svs-headline,
    .ws-svs-mini-item,
    .ws-svs-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ws-svs-btn {
        width: 100%;
    }

    .ws-svs-title {
        font-size: 26px;
    }

    .ws-svs-subtitle {
        font-size: 22px;
    }
}

.ws-svs-message-list {
    display: grid;
    gap: 14px;
}

.ws-svs-message-item {
    padding: 18px 20px;
    border-radius: 15px;
    background: rgba(255,255,255,0.7);
    border: 1px solid #ddd4ce;
}

.ws-svs-message-item-approved {
    background: #eef7ef;
    border-color: #cfe4d3;
}

.ws-svs-message-item-rejected {
    background: #fbefef;
    border-color: #eccccc;
}

.ws-svs-headline-message {
    align-items: flex-start;
}

.ws-svs-message-date {
    margin-top: 6px;
    font-size: 14px;
    color: #9a8678;
}

.ws-svs-message-body p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.ws-svs-message-body p:last-child {
    margin-bottom: 0;
}

.ws-svs-badge-new {
    min-width: auto;
    background: #efe7ff;
    color: #7352a0;
}

.ws-svs-help { display:block; margin-top:8px; font-size:13px; color:#8c7a6f; }


.ws-svs-consents {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #ddd4ce;
    border-radius: 12px;
    background: rgba(255,255,255,0.55);
}

.ws-svs-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    line-height: 1.45;
}

.ws-svs-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.ws-svs-consent span {
    margin: 0 !important;
}


.ws-svs-file-list {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #ddd4ce;
    border-radius: 12px;
    background: rgba(255,255,255,0.55);
}

.ws-svs-file-row {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.58);
    border: 1px solid #ddd4ce;
    font-weight: 400 !important;
}

.ws-svs-file-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0 !important;
    margin-top: 2px;
    flex: 0 0 auto;
}

.ws-svs-file-row span {
    display: grid;
    gap: 4px;
    margin: 0 !important;
}

.ws-svs-file-row small {
    display: block;
    font-size: 13px;
    color: #8c7a6f;
}

.ws-svs-download-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ws-svs-file-row-edit {
    display: grid !important;
    grid-template-columns: minmax(90px, 120px) minmax(0, 1fr) auto;
    align-items: end;
}

.ws-svs-file-delete {
    display: flex !important;
    gap: 8px;
    align-items: center;
    padding-bottom: 12px;
}

.ws-svs-file-delete span {
    margin: 0 !important;
}

.ws-svs-file-name input[type="text"] {
    min-height: 42px;
}

.ws-svs-file-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d7ccc3;
    background: #ffffff;
    color: #8d755e !important;
    text-decoration: none !important;
}

@media (max-width: 680px) {
    .ws-svs-download-settings,
    .ws-svs-file-row-edit {
        grid-template-columns: 1fr;
    }
}



.ws-svs-download-table {
    display: grid;
    gap: 10px;
}

.ws-svs-download-head,
.ws-svs-download-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
}

.ws-svs-download-head {
    font-size: 14px;
    color: #6f5e53;
    font-weight: 500;
}

.ws-svs-download-rows {
    display: grid;
    gap: 8px;
}

.ws-svs-download-row input[type="text"],
.ws-svs-download-row input[type="file"] {
    min-height: 42px;
    padding: 0 12px;
}

.ws-svs-file-add,
.ws-svs-file-remove {
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid #d7ccc3;
    background: #ffffff;
    color: #8d755e;
    cursor: pointer;
    font-size: 15px;
}

.ws-svs-file-add {
    justify-self: start;
    padding: 9px 14px;
}

.ws-svs-file-remove {
    width: 42px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 680px) {
    .ws-svs-download-head {
        display: none;
    }

    .ws-svs-download-row {
        grid-template-columns: 1fr;
    }

    .ws-svs-file-remove {
        width: 100%;
    }
}

.ws-svs-video-box input[type="file"] {
    background: #fbfaf9;
}

.ws-svs-video-preview {
    margin-top: 8px;
}

.ws-svs-video-preview .wp-video,
.ws-cmr-course-video .wp-video {
    width: 100% !important;
    max-width: 100%;
}

.ws-svs-video-preview video,
.ws-cmr-course-video video {
    width: 100% !important;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
}

.ws-cmr-course-video,
.ws-cmr-course-video .wp-video,
.ws-cmr-course-video .mejs-container,
.ws-cmr-course-video .mejs-inner,
.ws-cmr-course-video .mejs-mediaelement,
.ws-cmr-course-video .mejs-poster {
    border-radius: 15px;
    overflow: hidden;
}

.ws-svs-existing-files {
    display: grid;
    gap: 8px;
}

.ws-svs-existing-files-head,
.ws-svs-existing-file-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
}

.ws-svs-existing-files-head {
    font-size: 14px;
    color: #6f5e53;
    font-weight: 500;
}

.ws-svs-existing-file-row input[type="text"] {
    min-height: 42px;
    padding: 0 12px;
}

.ws-svs-existing-file-remove {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid #d7ccc3;
    background: #ffffff;
    color: #8d755e;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    margin: 0;
}

.ws-svs-existing-file-remove input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ws-svs-existing-file-row.is-marked-delete {
    opacity: 0.45;
}

.ws-svs-existing-file-row.is-marked-delete input[type="text"],
.ws-svs-existing-file-row.is-marked-delete .ws-svs-file-link,
.ws-svs-existing-file-row.is-marked-delete .ws-svs-file-missing {
    text-decoration: line-through;
}

.ws-svs-file-missing {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #9a7d6e;
}

@media (max-width: 680px) {
    .ws-svs-existing-files-head {
        display: none;
    }

    .ws-svs-existing-file-row {
        grid-template-columns: 1fr;
    }

    .ws-svs-existing-file-remove {
        width: 100%;
    }
}
