/* The header is absolutely positioned over the page; the quote pages carry
   their own clearance below it. */
.woocommerce-cart article.page,
.woocommerce-checkout article.page {
    padding: 50px;
}

/* Quote checkout: contact details stacked above the message, full width,
   no section headings between the page title and the fields */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    float: none;
    width: 100%;
    max-width: 100%;
}

.woocommerce-checkout .param-quote-nav {
    margin: 0 0 1em;
}

.woocommerce-checkout .param-quote-nav a {
    margin-right: 1.5em;
}

.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3 {
    display: none;
}

.woocommerce-checkout .param-review-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 2.5em;
}

.woocommerce-checkout .param-review-heading #order_review_heading {
    margin: 0;
}

/* Receipt */
.param-quote-received .param-quote-ref {
    color: #555;
    margin: -0.5em 0 1.5em;
}

.param-quote-received p.param-quote-pricing-note {
    color: #555;
    margin: 0 0 2.5em;
}

/* A quote has no shipping, tax or fees, so the subtotal would repeat the total. */
.woocommerce-checkout table.shop_table tfoot tr.cart-subtotal {
    display: none;
}

.woocommerce-checkout table.shop_table tfoot tr.param-quote-pricing-note td {
    font-size: 0.9em;
    font-weight: normal;
    color: #555;
}

.param-quote-received p.param-quote-unpriced-note {
    font-size: 0.9em;
    color: #555;
    margin: 0.75em 0 0;
}

.woocommerce-cart .param-quote-intro {
    margin-bottom: 1.5em;
}

.woocommerce-cart .param-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    margin-top: 1.5em;
}

.woocommerce-cart a.button.alt.param-submit-quote {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.woocommerce-cart a.button.alt.param-submit-quote:hover {
    background-color: #000;
    color: #00c59e;
}

/* Message box matches the text inputs. WooCommerce styles .input-text with
   its own border/radius variables at higher specificity than Divi's textarea
   rule, so this both outranks it and zeroes those variables. */
body.woocommerce-checkout form.checkout .form-row textarea.input-text {
    --wc-form-border-width: 0;
    --wc-form-border-radius: 0;
    --wc-form-color-background: #eee;
    --wc-form-color-text: #999;
    -webkit-appearance: none;
    background-color: #eee;
    border: 0;
    border-radius: 0;
    color: #999;
    font-size: 14px;
    line-height: 1.7em;
    padding: 16px;
    height: auto;
    min-height: 8em;
    box-shadow: none;
}
