.ddw-widget:has(.layout-calendar) {
    .ddw-canvas {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
    }
}

.ddw-widget .layout-calendar {
    .ui-datepicker {
        border: none !important;
    }

    table td {
        padding: 0 !important;
    }

    .ui-datepicker-header {
        border: none !important;
        background: none !important;
        font-weight: bold !important;
    }

    .ui-state-default {
        background: none;
        border: none;
        padding: 10px;
    }

    .ui-datepicker-current-day {
        .ui-state-active {
            background-color: rgba(13, 136, 193) !important;
            color: white !important;
            font-weight: normal !important;
            border-radius: 50%;
        }
    }

    .ui-datepicker-today {
        .ui-state-default {
            background-color: rgba(0,0,0,0.1) !important;
            border-radius: 50%;
            color: black !important;
        }
    }
}

.ddw-widget {

    #ddw-calendar-timeslots {
        overflow-y: auto;
        position: relative;
        padding: 1rem;
        height: 0;
        min-height: 100%;
    }

    .timeslots {
        .timeslot {
            background-color: rgba(0,0,0,0.05);
            padding:12px;
            width: 100%;
            margin-bottom: 8px;
            border-radius: 5px;
            cursor: pointer;
            user-select: none;
            font-size: 14px;
        }

        .timeslot.selected {
            background-color: rgba(13, 136, 193) !important;
            color: white;
        }
    }
}

.ddw-summary {
    margin: 20px 0;
    text-align: center;
    font-size: 16px;
}


.ddw-widget[data-source='cart_product_line'] {
    #ddw-calendar, #ddw-calendar-timeslots {
        display: none;
    }

    .ddw-summary {
        color: #222;
        font-weight: normal;
        text-align: left;
        font-size: 14px;
        margin-bottom: 3px;
    }

    .ddw-datepicker-toggle {
        display: block !important;
        color: black;
        font-size: 14px;
        font-weight: normal;
        text-decoration: underline;
        cursor: pointer;
    }

    .ui-datepicker * {
        font-size: 12px !important;
        padding: 0;

        td span, td a {
            padding: 2px 5px;
        }

        .ui-state-active, .ui-state-default {
            border-radius: 6px;
        }
    }
}


