
.dp-auto-schedule-fields {
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: clamp(12px, 3vw, 24px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
}

.dp-auto-schedule-fields [hidden] {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .dp-auto-plan .dp-auto-edit-period .dp-auto-schedule-form {
    max-width: 650px;
}

.dp-auto-schedule-title {
    margin: 0;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.2;
}

.dp-auto-schedule-order,
.dp-auto-schedule-count,
.dp-auto-schedule-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-auto-schedule-thumbs img {
    width: clamp(36px, 10vw, 66px);
    height: clamp(43px, 11vw, 72px);
    object-fit: contain;
    padding: 4px;
    border-radius: 7px;
    background: var(--cream);
}

.dp-auto-schedule-count strong,
.dp-auto-schedule-count span {
    display: block;
    line-height: 1.35;
}

.dp-auto-schedule-count span {
    color: var(--muted);
}

.dp-auto-schedule-fields svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--orange-dark);
}

.dp-auto-schedule-section {
    min-width: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
}

.dp-auto-schedule-section h4,
.dp-auto-schedule-fields legend {
    margin: 0 0 8px;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 800;
}

.dp-auto-schedule-section h4 > span,
.dp-auto-schedule-fields legend > span {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--orange-dark);
    color: #fff;
    font-size: 14px;
}

.dp-auto-schedule-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dp-auto-schedule-fields label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dp-auto-schedule-fields select {
    min-width: 0;
    min-height: 44px;
}

.dp-auto-schedule-fields fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.dp-auto-schedule-fields legend {
    padding: 0;
}

.dp-auto-month-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 6px;
}

.dp-auto-month-days label {
    display: block;
    position: relative;
    cursor: pointer;
}

.dp-auto-month-days input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.dp-auto-month-days span {
    display: grid;
    place-items: center;
    min-height: 36px;
    border: 1px solid #edc8ae;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.dp-auto-month-days input:checked + span {
    background: var(--orange-dark);
    color: #fff;
    border-color: var(--orange-dark);
}

.dp-auto-month-days input:focus-visible + span {
    outline: 2px solid var(--orange-dark);
    outline-offset: 2px;
}

.dp-auto-schedule-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border-radius: 7px;
    background: var(--cream);
    font-size: 14px;
    font-weight: 700;
}

.dp-auto-schedule-fields .dp-auto-preview-button {
    justify-content: center;
    width: 100% !important;
}

.dp-auto-preview:empty {
    display: none;
}

.dp-auto-preview ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 5px 12px;
    padding: 0;
    margin: 0;
}

@media (max-width: 480px) {
    .dp-auto-schedule-controls {
        grid-template-columns: minmax(0, 1fr);
    }
}

