/*
 * Checkout errors: Steven Saldana's batch 4 frame G4 (19 Oct 2026). Look only; loaded last by shopping_cart.php.
 *  - a field with a mistake: 1.5px red border on a pale red fill;
 *  - its message under the field: red, 13px semibold, with a red (!) circle in front;
 *  - the terms tick box outlined red;
 *  - the banner at the top of the step (checkout-errors-v4.js) when Continue finds mistakes.
 * The form's rules, messages, steps and payment code are unchanged.
 */
.checkout-redesign input.error,
.checkout-redesign select.error,
.checkout-redesign textarea.error,
.checkout-redesign .form-control.error,
.checkout-redesign .invalid-highlight { border: 1.5px solid #D64545 !important; background-color: #FFF6F6 !important; }
.checkout-redesign input.error:focus,
.checkout-redesign select.error:focus,
.checkout-redesign .form-control.error:focus,
.checkout-redesign .invalid-highlight:focus { border-color: #D64545 !important; box-shadow: 0 0 0 3px rgba(214, 69, 69, .14) !important; }
/* country / state pickers drawn by select2 */
.checkout-redesign select.error + .select2 .select2-selection { border: 1.5px solid #D64545 !important; background-color: #FFF6F6 !important; }

/* only the form checker's messages (they carry for="field"); other .error labels, like the Flex payment note that
   the page keeps hidden, are left alone */
.checkout-redesign label.error[for]:not([style*="none"]),
.checkout-redesign .textfield_main .form-group label.error[for]:not([style*="none"]) { display: flex !important; align-items: flex-start; gap: 6px; }
.checkout-redesign .field-error-message:not([style*="none"]) { display: flex; align-items: flex-start; gap: 6px; }
.checkout-redesign label.error[for],
.checkout-redesign .textfield_main .form-group label.error[for],
.checkout-redesign .field-error-message { margin: 8px 0 0 !important; padding: 0 !important; color: #D64545 !important; font: 600 13px/1.3 Montserrat, sans-serif !important; letter-spacing: 0; text-transform: none !important; text-align: left; }
.checkout-redesign label.error[for]::before,
.checkout-redesign .field-error-message::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.2' fill='%23D64545'/%3E%3Cpath d='M8 4.4v4.4' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.4' r='1' fill='%23fff'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }

.checkout-redesign input[type="checkbox"].error { outline: 0; box-shadow: 0 0 0 1.5px #D64545 !important; border-radius: 4px; }

.co4-banner { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; padding: 16px; border: 1px solid #F5C2C2; border-radius: 12px; background: #FDECEC; color: #A33030; font: 500 14px/1.45 Montserrat, sans-serif; text-align: left; }
.co4-banner::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.2' fill='%23D64545'/%3E%3Cpath d='M8 4.4v4.4' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.4' r='1' fill='%23fff'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
.co4-banner b { display: block; margin: 0 0 2px; font-weight: 700; color: #A33030; }
/* the new checkout look (body.co2, checkout-v2.css) sets every field's border with a stronger rule: win it only for a field with a mistake */
body.co2 .checkout-redesign .form-control.error,
body.co2 .checkout-redesign select.form-control.error,
body.co2 .checkout-redesign textarea.form-control.error,
body.co2 .checkout-redesign .form-control.invalid-highlight,
body.co2 .checkout-redesign .form-control.is-invalid,
body.co2 .checkout-redesign .form-control.parsley-error { border: 1.5px solid #D64545 !important; background-color: #FFF6F6 !important; box-shadow: none !important; }
body.co2 .checkout-redesign .form-control.error:focus,
body.co2 .checkout-redesign .form-control.is-invalid:focus { border-color: #D64545 !important; box-shadow: 0 0 0 3px rgba(214, 69, 69, .14) !important; }

/* Device check 19 Oct 2026: between 769 and 980px (phones sideways, iPad Air upright) an old rule in shopping-cart.css
   stacked each cart item (picture alone on its own row, name and price pushed right); the newer row layout only
   started at 768px. Same row layout as phones there. */
@media (min-width: 769px) and (max-width: 980px) {
    .checkout-redesign .yourcartsummary .sidebar_single_product { flex-flow: row; align-items: flex-start; gap: 14px; }
    .checkout-redesign .yourcartsummary .sidebar_single_product .product_img { width: auto; flex: none; }
    .checkout-redesign .yourcartsummary .sidebar_single_product .product_img img { max-width: 72px; max-height: 72px; }
    .checkout-redesign .yourcartsummary .sidebar_single_product .post_content { flex: 1; min-width: 0; }
}
