/*
 * AB Nails booking deposits are not discounts.
 * Hide WooCommerce's automatic sale presentation.
 */

.wc-block-components-order-summary .wc-block-components-product-price__regular {
    display: none;
}

.wc-block-components-product-badge.wc-block-components-sale-badge {
    display: none !important;
}


/*
 * AB Nails order-pay appointment summary.
 */

.abn-order-pay-summary {
    margin: 24px 0 28px;
    padding: 24px;
    border: 1px solid #d8d2cc;
    border-radius: 8px;
    background: #fbf8f4;
}

.abn-order-pay-summary h2 {
    margin: 0 0 10px;
}

.abn-order-pay-summary > p {
    margin: 0 0 22px;
}

.abn-order-pay-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.abn-order-pay-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/*
 * Left-hand appointment details.
 *
 * Desktop:
 * Service       Consultation
 * Date          Monday 12 October 2026
 * Time          12:45
 * Technician    Anna Barson
 */

.abn-order-pay-column:first-child > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.abn-order-pay-column:first-child > div > strong,
.abn-order-pay-column:first-child > div > span {
    display: block;
}


/*
 * Right-hand appointment address.
 */

.abn-order-pay-address {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.abn-order-pay-address strong,
.abn-order-pay-address span {
    display: block;
}


/*
 * General summary typography.
 */

.abn-order-pay-summary-grid strong,
.abn-order-pay-financials strong {
    font-weight: 600;
}

.abn-order-pay-summary-grid span,
.abn-order-pay-financials span {
    line-height: 1.5;
}


/*
 * Financial summary.
 */

.abn-order-pay-financials {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #d8d2cc;
}

.abn-order-pay-financials > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px;
    border-radius: 6px;
    background: #fff;
}

.abn-order-pay-financials > div:nth-child(2) {
    font-weight: 600;
}


/*
 * Mobile layout.
 */

@media (max-width: 700px) {

    .abn-order-pay-summary-grid {
        grid-template-columns: 1fr;
    }

    .abn-order-pay-column:first-child > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}


/*
 * WooCommerce guest-order notice.
 *
 * Restyle the default error notice as a calmer
 * informational message for appointment payments.
 */

.wc-block-components-notice-banner.is-error {
    position: relative;
    background: #fff8e8 !important;
    border: 1px solid #e6d6aa !important;
    color: #5f4b3a !important;
    box-shadow: none !important;
    border-radius: 6px;
    padding: 16px 18px 16px 52px !important;
}

.wc-block-components-notice-banner.is-error
.wc-block-components-notice-banner__content {
    color: #5f4b3a !important;
}

.wc-block-components-notice-banner.is-error > svg {
    display: none !important;
}

.wc-block-components-notice-banner.is-error::before {
    content: "i";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ecd79b;
    color: #6b5143;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}


/*
 * The WooCommerce order table duplicates the information
 * shown in the AB Nails appointment summary.
 */

body.woocommerce-order-pay table.shop_table {
    display: none !important;
}