/* Church Worship Schedule - Grid Style v11.8.1 */

/* 전체 폰트 및 기본 레이아웃 설정 */
.worship-schedule-container {
    max-width: 920px;
    margin: 42px auto;
    padding: 0 18px;
    color: #111827;
}
/* 위젯 내에서의 마진 조정 */
.widget .worship-schedule-container {
    margin: 0;
    padding: 0;
}

/* 그룹 제목 스타일: 왼쪽 정렬 */
.worship-schedule-container h3 {
    font-weight: 700;
    font-size: 1.38em;
    color: #111827;
    text-align: left;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0;
}

/* 테이블을 감싸는 반응형 래퍼 */
.worship-schedule-container .cws-table-responsive-wrapper {
    overflow-x: auto;
    margin-bottom: 34px;
    border-top: 1px solid #e5e7eb;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    border-left: none;
    border-radius: 8px;
    background: #ffffff;
}

/* 기본 테이블 스타일 */
.worship-schedule-container .worship-schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: none;
    background: #ffffff;
}

/* 테이블 헤더(th) 및 셀(td) 공통 스타일 */
.worship-schedule-container .worship-schedule-table th,
.worship-schedule-container .worship-schedule-table td {
    padding: 12px 15px;
    vertical-align: middle;
    text-align: left;
    border-right: none;
}

.worship-schedule-container .worship-schedule-table th:last-child,
.worship-schedule-container .worship-schedule-table td:last-child {
    border-right: none;
}

/* 테이블 헤더(th) 개별 스타일 */
.worship-schedule-container .worship-schedule-table thead th {
    padding: 13px 16px;
    font-size: 0.88em;
    font-weight: 700;
    color: #475569;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    text-align: center;
}

/* 테이블 본문(tbody) 행 스타일 */
.worship-schedule-container .worship-schedule-table tbody tr {
    border-bottom: 1px solid #eef2f7;
}

.worship-schedule-container .worship-schedule-table tbody td {
    padding: 15px 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #eef2f7;
    color: #111827;
}

.worship-schedule-container .worship-schedule-table tbody tr:hover td {
    background-color: #f8fafc;
}

.worship-schedule-container .worship-schedule-table tbody tr:last-child td {
    border-bottom: none;
}

/* 특별 예배 행 스타일 */
.worship-schedule-container .cws-special-date {
    font-weight: 600;
    color: #b45309;
}

/* 예배 제목이 있는 첫번째 셀 스타일 */
.worship-schedule-container .worship-schedule-table .worship-title-cell {
    font-weight: 700;
    color: #111827;
}

/* 예배 내용 스타일 */
.worship-schedule-container .worship-content {
    display: block;
    margin-top: 6px;
    font-size: 0.9em;
    font-weight: 400;
    color: #64748b;
    line-height: 1.55;
}
.worship-schedule-container .worship-content p {
    margin: 0;
}

/* 온라인 예배 바로가기 버튼 */
.worship-schedule-container .cws-online-button {
    display: inline-block;
    margin: 0;
    padding: 7px 11px;
    font-size: 0.82em;
    font-weight: 700;
    color: #ffffff;
    background-color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
.worship-schedule-container .cws-online-button:hover {
    color: #fff;
    background-color: #1d4ed8;
}

/* 카드형 예배 시간표 */
.worship-schedule-container .cws-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 42px;
}

.worship-schedule-container .cws-card-grid-2 {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.worship-schedule-container .cws-card-grid-3 {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.worship-schedule-container .cws-worship-card {
    min-height: 300px;
    padding: 42px 40px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #ffffff;
    color: #333333;
    box-sizing: border-box;
}

.worship-schedule-container .cws-card-target {
    margin-bottom: 8px;
    font-size: 0.92em;
    color: #0f4ca3;
    line-height: 1.4;
}

.worship-schedule-container .cws-worship-card h4 {
    margin: 0;
    font-size: 1.28em;
    font-weight: 800;
    line-height: 1.35;
    color: #333333;
}

.worship-schedule-container .cws-card-rule {
    display: block;
    width: 20px;
    height: 1px;
    margin: 20px 0 18px;
    background: #c9c9c9;
}

.worship-schedule-container .cws-card-time,
.worship-schedule-container .cws-card-location,
.worship-schedule-container .cws-card-date,
.worship-schedule-container .cws-card-content {
    font-size: 0.98em;
    line-height: 1.8;
    color: #333333;
}

.worship-schedule-container .cws-card-content {
    color: #64748b;
}

.worship-schedule-container .cws-card-online {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    color: #333333;
    text-decoration: none;
}

.worship-schedule-container .cws-card-online-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(180deg, #1594e5 0%, #001063 100%);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    overflow: hidden;
    flex: 0 0 50px;
}

.worship-schedule-container .cws-card-online-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.worship-schedule-container .cws-card-online strong,
.worship-schedule-container .cws-card-online small {
    display: block;
}

.worship-schedule-container .cws-time-line {
    display: block;
}

.worship-schedule-container .cws-card-online strong {
    margin-bottom: 4px;
    font-size: 1em;
    font-weight: 800;
}

.worship-schedule-container .cws-card-online small {
    color: #666666;
    font-size: 0.82em;
    text-decoration: underline;
    letter-spacing: 0;
}

.worship-schedule-container .cws-online-section {
    margin: 8px 0 42px;
}

.worship-schedule-container .cws-online-section h4 {
    margin: 0 0 18px;
    font-size: 1.35em;
    font-weight: 800;
    color: #333333;
}

.worship-schedule-container .cws-online-button-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px 40px;
}

.worship-schedule-container .cws-online-button-grid-2 {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.worship-schedule-container .cws-online-button-grid-3 {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.worship-schedule-container .cws-online-tile {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 96px;
    padding: 20px 30px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.worship-schedule-container .cws-online-tile:hover {
    transform: translateY(-1px);
}

.worship-schedule-container .cws-online-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 54px;
    color: #ffffff;
    background: #2563eb;
    font-size: 28px;
    font-weight: 800;
    transition: width 0.25s ease, height 0.25s ease, flex-basis 0.25s ease, background-color 0.25s ease;
}

.worship-schedule-container .cws-online-tile-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.worship-schedule-container .cws-online-tile strong,
.worship-schedule-container .cws-online-tile small,
.worship-schedule-container .cws-online-tile em {
    display: block;
}

.worship-schedule-container .cws-online-tile strong {
    margin-bottom: 4px;
    font-size: 1.06em;
    font-weight: 800;
    transition: color 0.25s ease;
}

.worship-schedule-container .cws-online-tile small {
    color: #666666;
    font-size: 0.82em;
    letter-spacing: 0;
    font-style: normal;
    transition: color 0.25s ease;
}

.worship-schedule-container .cws-online-tile em {
    margin-top: 3px;
    color: #666666;
    font-size: 0.82em;
    font-style: normal;
    letter-spacing: 0;
    transition: color 0.25s ease;
}

/* 프리셋별 레이아웃 */
.worship-schedule-container.cws-preset-basic {
    max-width: 920px;
}

.worship-schedule-container.cws-preset-basic .cws-table-responsive-wrapper {
    border-color: #d7dde5;
}

.worship-schedule-container.cws-preset-modern {
    max-width: 1040px;
}

.worship-schedule-container.cws-preset-modern h3 {
    border-bottom: 0;
    padding-bottom: 0;
}

.worship-schedule-container.cws-preset-modern .cws-table-responsive-wrapper {
    border: 0;
    border-radius: 0;
    padding-bottom: 1px;
}

.worship-schedule-container.cws-preset-modern .worship-schedule-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent;
}

.worship-schedule-container.cws-preset-modern .worship-schedule-table thead th {
    border-bottom: 0;
}

.worship-schedule-container.cws-preset-modern .worship-schedule-table tbody tr {
    border: 0;
}

.worship-schedule-container.cws-preset-modern .worship-schedule-table tbody td {
    border-top: 1px solid #cbd3df;
    border-bottom: 1px solid #cbd3df;
}

.worship-schedule-container.cws-preset-modern .worship-schedule-table tbody tr:last-child td {
    border-bottom: 1px solid #cbd3df;
    box-shadow: inset 0 -1px 0 #cbd3df;
}

.worship-schedule-container.cws-preset-modern .worship-schedule-table tbody td:first-child {
    border-left: 1px solid #cbd3df;
    border-radius: 8px 0 0 8px;
}

.worship-schedule-container.cws-preset-modern .worship-schedule-table tbody td:last-child {
    border-right: 1px solid #cbd3df;
    border-radius: 0 8px 8px 0;
}

.worship-schedule-container.cws-preset-card {
    max-width: 1180px;
}

.worship-schedule-container.cws-preset-card h3 {
    border-bottom: 0;
    padding-bottom: 0;
    text-align: left;
}

.worship-schedule-container.cws-preset-card .cws-card-grid {
    gap: 24px;
}

.worship-schedule-container.cws-preset-card .cws-worship-card {
    min-height: 260px;
    padding: 34px 32px;
    border-color: #e7c9ad;
    background: #fffaf5;
}

.worship-schedule-container.cws-preset-card .cws-card-rule {
    width: 28px;
    margin: 18px 0 16px;
}

.worship-schedule-container.cws-preset-card .cws-card-online {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eed9c3;
}

.worship-schedule-container.cws-preset-card .cws-online-section {
    margin-top: 0;
}

.worship-schedule-container.cws-preset-card .cws-online-button-grid {
    gap: 20px;
}

.worship-schedule-container.cws-preset-card .cws-online-tile {
    min-height: 104px;
    padding: 20px 26px;
}

.worship-schedule-container.cws-preset-simple {
    max-width: 760px;
}

.worship-schedule-container.cws-preset-simple h3 {
    border-bottom: 1px solid #bfe4ec;
    padding-bottom: 8px;
}

.worship-schedule-container.cws-preset-simple .cws-table-responsive-wrapper {
    border: 0;
    border-radius: 0;
}

.worship-schedule-container.cws-preset-simple .worship-schedule-table thead {
    display: none;
}

.worship-schedule-container.cws-preset-simple .worship-schedule-table,
.worship-schedule-container.cws-preset-simple .worship-schedule-table tbody,
.worship-schedule-container.cws-preset-simple .worship-schedule-table tr,
.worship-schedule-container.cws-preset-simple .worship-schedule-table td {
    display: block;
    width: 100%;
}

.worship-schedule-container.cws-preset-simple .worship-schedule-table tr {
    padding: 16px 0;
    border-bottom: 1px solid #bfe4ec;
}

.worship-schedule-container.cws-preset-simple .worship-schedule-table tbody td {
    padding: 4px 0;
    border-bottom: 0;
}

.worship-schedule-container.cws-preset-simple .worship-schedule-table td::before {
    content: attr(data-label);
    display: inline-block;
    width: 58px;
    margin-right: 8px;
    color: #4f7580;
    font-size: 0.86em;
    font-weight: 700;
}

.worship-schedule-container.cws-preset-simple .worship-schedule-table .worship-title-cell::before {
    display: none;
}

.worship-schedule-container.cws-preset-simple .cws-online-button-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.worship-schedule-container.cws-preset-simple .cws-online-tile {
    min-height: 74px;
    padding: 14px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

/* 모바일 반응형 스타일 */
@media screen and (max-width: 768px) {
    .worship-schedule-container {
        margin: 28px auto;
        padding: 0 14px;
    }

    .worship-schedule-container h3 {
        margin-bottom: 12px;
        font-size: 1.24em;
    }

    .worship-schedule-container .cws-table-responsive-wrapper {
        overflow: visible;
        margin-bottom: 28px;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .worship-schedule-container .worship-schedule-table {
        border: none;
        background-color: transparent;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    
    .worship-schedule-container .worship-schedule-table thead {
        display: none;
    }

    .worship-schedule-container .worship-schedule-table,
    .worship-schedule-container .worship-schedule-table tbody {
        display: block;
        width: 100%;
    }

    .worship-schedule-container .worship-schedule-table tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
        background-color: #ffffff;
        border-radius: 8px;
        margin-bottom: 12px;
        border-bottom: none;
        border: 1px solid #e5e7eb;
        box-shadow: none;
    }
    
    .worship-schedule-container .worship-schedule-table tr:last-child {
        margin-bottom: 0;
    }
    
    .worship-schedule-container .worship-schedule-table tr:hover {
        background-color: #ffffff;
    }
    
    .worship-schedule-container .worship-schedule-table tr.cws-special-event {
        background-color: #fffbeb;
        border-color: #fde68a;
    }

    .worship-schedule-container .worship-schedule-table tbody td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        padding: 0;
        border: none;
        background-color: transparent;
        text-align: left;
        font-size: 0.94em;
        color: #334155;
    }
    
    .worship-schedule-container .worship-schedule-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        min-width: 54px;
        font-size: 0.78em;
        font-weight: 700;
        color: #94a3b8;
    }

    .worship-schedule-container .worship-schedule-table .worship-title-cell {
        display: block;
        width: auto;
        font-size: 1.08em;
        font-weight: 800;
        color: #111827;
        margin-bottom: 2px;
    }

    .worship-schedule-container .worship-schedule-table .worship-title-cell::before {
        display: none;
    }
    
    .worship-schedule-container .worship-schedule-table .worship-content,
    .worship-schedule-container .worship-schedule-table .cws-special-date {
         display: block;
         font-size: 0.88em;
         font-weight: 400;
         color: #64748b;
         margin-top: 5px;
    }
    
    .worship-schedule-container .worship-schedule-table td[data-label="온라인"] {
        width: auto;
        margin-top: 8px;
        justify-content: stretch;
    }

    .worship-schedule-container .worship-schedule-table td[data-label="온라인"]:empty {
        display: none;
    }
    
    .worship-schedule-container .worship-schedule-table td[data-label="온라인"]::before {
        display: none;
    }

    .worship-schedule-container .worship-schedule-table td[data-label="온라인"] .cws-online-button {
        display: block;
        width: 100%;
        padding: 10px 12px;
        text-align: center;
        box-sizing: border-box;
    }

    .worship-schedule-container .cws-d-day {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .worship-schedule-container .cws-card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 28px;
    }

    .worship-schedule-container .cws-worship-card {
        min-height: 0;
        padding: 26px 24px;
        border-radius: 5px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

    .worship-schedule-container .cws-card-online {
        margin-top: 22px;
    }

    .worship-schedule-container .cws-online-button-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .worship-schedule-container .cws-online-button-grid-2,
    .worship-schedule-container .cws-online-button-grid-3 {
        grid-template-columns: 1fr;
    }

    .worship-schedule-container .cws-online-tile {
        min-height: 86px;
        padding: 16px 20px;
        gap: 16px;
    }
}


/* 절기 안내문 스타일 */
.worship-schedule-container .cws-season-notice {
    padding: 15px 20px;
    margin-bottom: 30px;
    border: 1px solid #cce5ff;
    border-left-width: 5px;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #004085;
}

.worship-schedule-container .cws-season-notice h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #004085;
    font-weight: 700;
}

.worship-schedule-container .cws-season-notice p {
    margin: 0;
    font-size: 0.95em;
}

/* 관리자 예배 관리 화면 */
.cws-simple-admin .description {
    margin-bottom: 18px;
}

.cws-design-admin .description {
    margin: 6px 0 18px;
}

.cws-design-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1120px;
}

.cws-design-preset-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
    gap: 18px;
    align-items: start;
    max-width: 1120px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
}

.cws-preset-control label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.cws-preset-control select {
    min-width: 220px;
}

.cws-preset-preview {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8fafc;
}

.cws-preview-surface {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: #ffffff;
}

.cws-preview-surface h3 {
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.3;
}

.cws-preview-table {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
}

.cws-preview-head,
.cws-preview-row {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
}

.cws-preview-head {
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.cws-preview-row strong,
.cws-preview-row small,
.cws-preview-online-tile strong,
.cws-preview-online-tile small,
.cws-preview-online-tile em {
    display: block;
}

.cws-preview-button {
    display: inline-block;
    padding: 6px 9px;
    border: 1px solid #2563eb;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
}

.cws-preview-online-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cws-preview-online-tile:hover {
    transform: translateY(-1px);
}

.cws-preview-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    background: #2563eb;
}

.cws-preview-online-tile em {
    font-style: normal;
}

.cws-preset-preview.is-modern .cws-preview-surface h3 {
    border-bottom: 0;
}

.cws-preset-preview.is-modern .cws-preview-table {
    border: 0;
    background: transparent;
}

.cws-preset-preview.is-modern .cws-preview-row {
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.cws-preset-preview.is-card .cws-preview-table {
    display: none;
}

.cws-preset-preview.is-card .cws-preview-surface {
    display: grid;
    gap: 14px;
}

.cws-preset-preview.is-card .cws-preview-online-tile {
    min-height: 118px;
    padding: 24px;
}

.cws-preset-preview.is-simple .cws-preview-head {
    display: none;
}

.cws-preset-preview.is-simple .cws-preview-table {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.cws-preset-preview.is-simple .cws-preview-row {
    grid-template-columns: 1fr;
    border-bottom: 1px solid #e5e7eb;
}

.cws-preset-preview.is-simple .cws-preview-online-tile {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding-right: 0;
    padding-left: 0;
}

.cws-advanced-panel {
    margin: 14px 0;
    padding: 0;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #ffffff;
}

.cws-advanced-panel summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 700;
    color: #1f2937;
    background: #f8fafc;
}

.cws-advanced-panel[open] summary {
    border-bottom: 1px solid #e5e7eb;
}

.cws-design-advanced {
    max-width: 1120px;
}

.cws-design-advanced .cws-design-grid,
.cws-group-advanced .cws-simple-group-advanced-grid,
.cws-item-advanced .cws-simple-item-grid,
.cws-item-advanced > p,
.cws-item-advanced .cws-simple-item-options {
    padding: 14px;
}

.cws-simple-group-advanced-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
}

.cws-admin-mode-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.cws-design-card {
    padding: 18px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #ffffff;
}

.cws-design-card h2 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
    line-height: 1.35;
}

.cws-design-field,
.cws-design-check {
    display: block;
    margin-bottom: 14px;
}

.cws-design-field > span,
.cws-design-check > span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.cws-design-check {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cws-design-check > span {
    margin-bottom: 0;
}

.cws-design-control {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cws-design-control input[type="number"] {
    width: 96px;
}

.cws-design-control input[type="text"] {
    width: 100%;
}

.cws-design-control select {
    min-width: 74px;
}

.cws-design-control .wp-picker-container {
    max-width: 100%;
}

.cws-simple-group {
    margin: 18px 0;
    padding: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
}

.cws-simple-group-header {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 240px) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}

.cws-inline-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 30px;
    align-items: center;
}

.cws-inline-checks label {
    margin: 0;
    font-weight: 400;
}

.cws-simple-admin label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.cws-simple-admin input[type="text"],
.cws-simple-admin input[type="url"],
.cws-simple-admin input[type="date"],
.cws-simple-admin textarea,
.cws-season-admin input[type="text"],
.cws-season-admin input[type="date"],
.cws-season-admin select,
.cws-season-admin textarea {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.cws-season-form {
    max-width: 960px;
}

.cws-season-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
}

.cws-season-grid p,
.cws-season-form p {
    margin: 0 0 12px;
}

.cws-season-item {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
}

.cws-simple-item {
    margin-bottom: 16px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.cws-mode-special .cws-simple-item:not(.is-special-event),
.cws-mode-online .cws-simple-item:not(.is-online-button) {
    opacity: 0.72;
}

.cws-mode-special .cws-simple-item:not(.is-special-event) .cws-simple-item-summary,
.cws-mode-online .cws-simple-item:not(.is-online-button) .cws-simple-item-summary {
    background: #64748b;
}

.cws-mode-special .cws-item-advanced,
.cws-mode-online .cws-item-advanced {
    display: block;
}

.cws-simple-item-summary {
    display: grid;
    grid-template-columns: minmax(130px, 1.3fr) minmax(150px, 1.5fr) minmax(120px, 1fr) minmax(110px, 1fr) minmax(100px, 0.8fr);
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    color: #ffffff;
    background: #1f2937;
    font-weight: 700;
}

.cws-simple-item-summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cws-summary-online {
    color: #bfdbfe;
}

.cws-simple-item-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px 0;
    margin-bottom: 8px;
}

.cws-sort-handle {
    cursor: move;
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #ffffff;
    color: #50575e;
    font-size: 12px;
}

.cws-online-order-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
}

.cws-online-order-panel h4 {
    margin: 0 0 6px;
}

.cws-online-order-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.cws-online-order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #f9fafb;
}

.cws-field-with-button {
    display: flex;
    gap: 6px;
}

.cws-field-with-button input {
    flex: 1 1 auto;
}

.cws-simple-item-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    padding: 0 14px;
}

.cws-simple-item-grid p,
.cws-simple-item p {
    margin: 0 0 12px;
}

.cws-simple-item > p {
    padding: 0 14px;
}

.cws-simple-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    padding: 0 14px 14px;
}

.cws-simple-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 14px 14px;
}

.cws-simple-item-options label {
    margin: 0;
    font-weight: 400;
}

@media screen and (min-width: 769px) and (max-width: 1100px) {
    .worship-schedule-container .cws-card-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 20px;
    }

    .worship-schedule-container .cws-online-button-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 16px;
    }

    .worship-schedule-container .cws-online-button-grid-3 {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .cws-design-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .cws-design-preset-panel {
        grid-template-columns: 1fr;
    }

    .cws-simple-group-advanced-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .cws-simple-item-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .cws-season-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media screen and (max-width: 782px) {
    .cws-design-grid,
    .cws-design-preset-panel,
    .cws-season-grid,
    .cws-simple-group-advanced-grid,
    .cws-simple-group-header,
    .cws-simple-item-grid,
    .cws-simple-item-summary {
        grid-template-columns: 1fr;
    }

    .cws-preview-head,
    .cws-preview-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .cws-simple-item-summary span {
        white-space: normal;
    }
}
