/**
 * DirectPrint for WooCommerce
 *
 * Pickup time selection, on the delivery step of the checkout.
 *
 * All the styling of the block lives here: templates/pickup-time.php only carries class names and
 * the script sets no style at all. The stylesheet is loaded by hookDisplayHeader().
 *
 * Dark card, large reminder of the chosen time, two 100 px dials.
 * To go back to a light background, only the card, dial and text colours below need to
 * change: the structure stays the same.
 *
 * @author    Pixelorigin <contact@pixelorigin.com>
 * @copyright Since 2025 Pixelorigin
 * @license   GPL-2.0-or-later
 */

#directprint-pickup-wrapper {
    text-align: center;
}

#directprint-pickup-wrapper .directprint-pickup-card {
    display: inline-block;
    max-width: 100%;
    min-width: 260px;
    padding: 22px 26px 18px;
    border-radius: 18px;
    background: #121212;
    color: #f1f1f1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    text-align: center;
}

/* Reminder of the chosen time: the customer checks it without reopening the lists. */
#directprint-pickup-wrapper .directprint-pickup-echo {
    margin: 0 0 16px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.1;
}

#directprint-pickup-wrapper .directprint-pickup-echo span {
    color: #6ea8ff;
}

#directprint-pickup-wrapper .directprint-pickup-selects {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

#directprint-pickup-wrapper .directprint-pickup-dial {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#directprint-pickup-wrapper .directprint-pickup-dial small {
    color: #9aa0a6;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

#pickup_hour,
#pickup_minute {
    height: 100px;
    width: 100px;
    /* Digit centred inside the square, without the inner padding of the theme. */
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #1f1f1f;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 100px;
    text-align: center;
    text-align-last: center;
    box-shadow: inset 0 0 0 2px #333;
    cursor: pointer;
    outline: none;
    transition: box-shadow .15s, background .15s;
}

#pickup_hour:focus,
#pickup_minute:focus {
    box-shadow: inset 0 0 0 2px #6ea8ff;
}

/* Minutes only open once the hour has been chosen. */
#pickup_minute:disabled {
    background: #171717;
    color: #6b6b6b;
    cursor: default;
}

#directprint-pickup-wrapper .help-block {
    margin: 16px 0 0;
    color: #c7c7c7;
    font-size: 13px;
}

/* Message shown while no time is chosen (added by pickup_time.js, or by the template
   when the server sent the customer back to this step). */
#directprint-pickup-warning,
#directprint-pickup-wrapper .directprint-pickup-missing {
    margin-top: 8px;
    color: #ff8a80;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* "Place order" button, when a script disables it. */
#place_order:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
 * Pickup time reminder on the order confirmation page.
 * Same dark card as the selector, placed at the very top of the content so that
 * it can be read without scrolling.
 * ------------------------------------------------------------------------- */

.directprint-pickup-reminder {
    margin: 0 0 18px;
    padding: 18px 24px 16px;
    border-radius: 18px;
    background: #121212;
    color: #f1f1f1;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.directprint-pickup-reminder-title {
    margin: 0 0 6px;
    color: #9aa0a6;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.directprint-pickup-reminder-time {
    margin: 0;
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.1;
}

.directprint-pickup-reminder-time span {
    color: #6ea8ff;
}

.directprint-pickup-reminder-help {
    margin: 8px 0 0;
    color: #c7c7c7;
    font-size: 13px;
}

/* ---------------------------------------------------------------------------
 * WooCommerce: title of the block and its place in the classic checkout and
 * above the checkout block.
 * ------------------------------------------------------------------------- */
#directprint-pickup-wrapper {
    margin: 0 0 24px;
}

#directprint-pickup-wrapper .directprint-pickup-title {
    margin: 0 0 12px;
}

#directprint-pickup-wrapper select.directprint-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}

.directprint-pickup--blocks {
    max-width: 1170px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Order details and emails: "Pickup time: 12:30". */
.directprint-pickup-line strong {
    font-size: 1.1em;
}
