/* DSR Product Customizer cart styles.
 * Customized apparel can contain several size prices in one cart line, so a
 * single WooCommerce unit-price column is misleading. The order total remains
 * visible in the cart totals, while size quantities and savings stay with the
 * product details.
 */
.woocommerce-cart table.shop_table th.product-price,
.woocommerce-cart table.shop_table td.product-price {
    display: none !important;
}

/* Editable size quantities for customized cart items. */
.dsr-pc-cart-size-editor {
    display: inline-grid;
    gap: .4rem;
    min-width: 150px;
}
.dsr-pc-cart-size-row {
    display: grid;
    grid-template-columns: minmax(38px, auto) 34px 48px 34px;
    align-items: center;
    gap: 0;
}
.dsr-pc-cart-size-label {
    padding-right: .5rem;
    font-weight: 700;
    text-align: left;
}
.woocommerce-cart .dsr-pc-cart-size-input {
    width: 48px !important;
    min-width: 48px !important;
    height: 34px;
    margin: 0 !important;
    padding: 0 .25rem !important;
    border-radius: 0 !important;
    text-align: center;
    -moz-appearance: textfield;
}
.woocommerce-cart .dsr-pc-cart-size-input::-webkit-outer-spin-button,
.woocommerce-cart .dsr-pc-cart-size-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
.dsr-pc-cart-qty-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    color: #222;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}
.dsr-pc-cart-qty-button:hover,
.dsr-pc-cart-qty-button:focus-visible {
    background: #f3f3f3;
}
.dsr-pc-cart-size-total {
    margin-top: .15rem;
    font-size: .88rem;
    color: #666;
}
.dsr-pc-edit-design-wrap {
    margin: .65rem 0 0;
}
.dsr-pc-edit-design {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    text-decoration: none;
}
.dsr-pc-edit-design span {
    color: #e82529;
}
@media (max-width: 768px) {
    .dsr-pc-cart-size-editor { margin-left: auto; }
}

/* Save Order & Design: secondary cart action below Proceed to Checkout. */
.dsr-pc-save-order {
    margin-top: .85rem;
}
.woocommerce-cart .dsr-pc-save-order-toggle {
    width: 100%;
    min-height: 44px;
    border: 1px solid #111 !important;
    background: #fff !important;
    color: #111 !important;
    font-weight: 700;
}
.woocommerce-cart .dsr-pc-save-order-toggle:hover,
.woocommerce-cart .dsr-pc-save-order-toggle:focus-visible {
    background: #f3f3f3 !important;
}
.dsr-pc-save-order-panel {
    margin-top: .75rem;
    padding: 1rem;
    border: 1px solid #ddd;
    background: #fff;
    text-align: left;
}
.dsr-pc-save-order-panel label {
    display: block;
    margin: 0 0 .4rem;
    font-weight: 700;
}
.dsr-pc-save-order-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
}
.woocommerce-cart .dsr-pc-save-order-fields input[type="email"] {
    width: 100%;
    min-width: 0;
    margin: 0;
}
.woocommerce-cart .dsr-pc-save-order-submit {
    white-space: nowrap;
    background: #111 !important;
    color: #fff !important;
    font-weight: 700;
}
.dsr-pc-save-order-note {
    margin: .7rem 0 0;
    color: #666;
    font-size: .88rem;
    line-height: 1.45;
}
.dsr-pc-save-order-status {
    margin: .65rem 0 0;
    font-size: .92rem;
    line-height: 1.45;
}
.dsr-pc-save-order-status.is-success {
    font-weight: 600;
}
.dsr-pc-save-order-status.is-error {
    font-weight: 600;
}
.dsr-pc-save-order-fallback-link {
    display: inline-block;
    margin-top: .35rem;
    font-weight: 700;
}
@media (max-width: 560px) {
    .dsr-pc-save-order-fields {
        grid-template-columns: 1fr;
    }
    .woocommerce-cart .dsr-pc-save-order-submit {
        width: 100%;
    }
}
