.wcos-split-launcher-description {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.wcos-split-launcher {
    margin-right: 6px;
}

/* Server-rendered source markup is a non-visible cloning source only. */
.wcos-split-dialog {
    display: none !important;
}

.wcos-split-table th[hidden],
.wcos-split-table td[hidden] {
    display: none !important;
}

.wcos-split-backbone-modal .wc-backbone-modal-content {
    width: min(900px, calc(100% - 40px));
    max-width: 900px;
    min-width: 0;
}

.wcos-split-method-backbone-modal .wc-backbone-modal-content {
    width: min(560px, calc(100% - 40px));
    max-width: 560px;
    min-width: 0;
}

.wcos-split-backbone-modal .wcos-admin-backbone-modal__description,
.wcos-split-method-backbone-modal .wcos-admin-backbone-modal__description {
    margin: 0 0 18px;
    color: #50575e;
}

.wcos-split-method-options {
    display: grid;
    gap: 10px;
}

.wcos-split-method-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    text-align: left;
    cursor: pointer;
}

.wcos-split-method-option:hover,
.wcos-split-method-option:focus {
    border-color: var(--wp-admin-theme-color, #2271b1);
    box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #2271b1);
    outline: none;
}

.wcos-split-method-option strong {
    font-size: 14px;
}

.wcos-split-method-option span {
    color: #50575e;
    font-weight: 400;
}

.wcos-split-child-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #f6f7f7;
}

.wcos-split-child-count {
    margin-right: auto;
}

.wcos-split-remove-child {
    color: #b32d2e;
    white-space: nowrap;
}

.wcos-split-remove-child:hover,
.wcos-split-remove-child:focus {
    color: #8a2424;
}

.wcos-split-table-wrap {
    overflow-x: auto;
    margin: 0 0 18px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.wcos-split-table {
    width: 100%;
    min-width: 760px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: none;
}

.wcos-split-table th,
.wcos-split-table td {
    padding: 14px 18px !important;
    vertical-align: middle !important;
}

.wcos-split-table thead th {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    background: #f6f7f7;
    color: #2c3338;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.wcos-split-table tbody th,
.wcos-split-table tbody td {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    vertical-align: top !important;
}

.wcos-split-table th:first-child,
.wcos-split-table td:first-child {
    width: 30%;
    min-width: 220px;
    text-align: left !important;
}

.wcos-split-table th:nth-child(2),
.wcos-split-table td:nth-child(2) {
    width: 210px;
    min-width: 210px;
    text-align: left !important;
}

.wcos-split-table th:nth-child(n + 3),
.wcos-split-table td:nth-child(n + 3) {
    width: 150px;
    min-width: 150px;
    text-align: center !important;
}

.wcos-split-table tbody td:nth-child(n + 3) {
    padding-top: 12px !important;
}

.wcos-split-table tbody th {
    color: #3c434a;
    font-weight: 600;
    line-height: 1.4;
}

.wcos-split-table tbody td:nth-child(2) {
    color: #3c434a;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}

.wcos-split-table input[type="number"] {
    display: block;
    width: 108px;
    min-width: 108px;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.wcos-split-remaining-hint {
    display: block;
    margin-top: 6px;
    color: #646970;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.wcos-split-step-hint,
.wcos-split-non-splittable {
    display: block;
    max-width: 180px;
    margin-top: 4px;
    color: #646970;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.wcos-split-non-splittable {
    margin-top: 6px;
    color: #8a2424;
}

.wcos-split-remaining.is-invalid {
    color: #b32d2e;
}

.wcos-split-policy {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #f6f7f7;
}

.wcos-split-policy h3,
.wcos-split-review h3 {
    margin: 0 0 6px;
}

.wcos-split-policy-summary {
    max-width: 720px;
    margin: 0 0 8px;
    color: #50575e;
}

.wcos-split-policy-toggle {
    font-weight: 600;
}

.wcos-split-policy ul {
    margin: 12px 0 0 18px;
}

.wcos-split-review {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
}

.wcos-split-review-summary {
    margin: 0 0 10px;
    color: #50575e;
}

.wcos-split-confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    line-height: 1.45;
}

.wcos-split-confirm-label input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 2px 0 0;
}

.wcos-split-confirm-label span {
    min-width: 0;
}

.wcos-split-status,
.wcos-split-error,
.wcos-split-result {
    margin-top: 16px;
}

.wcos-split-error,
.wcos-split-result {
    padding: 10px 12px;
}

.wcos-split-result ul {
    margin-left: 20px;
}

.wcos-split-backbone-modal footer .inner,
.wcos-split-method-backbone-modal footer .inner {
    gap: 8px;
}

@media (max-width: 782px) {
    .wcos-split-backbone-modal .wc-backbone-modal-content,
    .wcos-split-method-backbone-modal .wc-backbone-modal-content {
        width: calc(100% - 24px);
        max-width: none;
        min-width: 0;
    }

    .wcos-split-child-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .wcos-split-child-count {
        margin-right: 0;
    }

    .wcos-split-child-toolbar .button {
        min-height: 44px;
        text-align: center;
    }

    .wcos-split-table {
        min-width: 680px;
    }

    .wcos-split-table th,
    .wcos-split-table td {
        padding: 12px !important;
    }

    .wcos-split-table tbody th,
    .wcos-split-table tbody td {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .wcos-split-table tbody td:nth-child(n + 3) {
        padding-top: 8px !important;
    }

    .wcos-split-table th:first-child,
    .wcos-split-table td:first-child {
        min-width: 180px;
    }

    .wcos-split-table th:nth-child(2),
    .wcos-split-table td:nth-child(2) {
        width: 180px;
        min-width: 180px;
    }

    .wcos-split-table th:nth-child(n + 3),
    .wcos-split-table td:nth-child(n + 3) {
        width: 128px;
        min-width: 128px;
    }

    .wcos-split-method-option {
        min-height: 64px;
    }
}
