/* Cactus checkout and quick order. Presentation only. */
body .w-dialog-block:has(> .quickorder-form) {
    width: 660px;
    max-width: calc(100vw - 32px);
    padding: 0;
    border: 1px solid #e5eaf0;
    border-radius: 16px !important;
    box-shadow: 0 24px 80px rgb(22 42 65 / 20%);
    overflow: hidden;
}
body .quickorder-form {
    color: #23364a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
body .quickorder-form .quickorder-form-head {
    position: relative;
    padding: 24px 64px 20px 28px;
    background: #fff;
    border: 0;
    color: #172b40;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}
body .quickorder-form .quickorder-form-head i { font-style: normal; }
body .quickorder-form [data-quickorder-close] {
    top: 22px;
    right: 24px;
    color: #8593a3;
}
body .quickorder-form .quickorder-form-content {
    padding: 0 28px;
    background: #fff;
}
body .quickorder-form .quickorder-block { margin: 0; padding: 0; }
body .quickorder-form .quickorder-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 12px 16px;
    align-items: center;
    width: 100%;
    margin: 0 0 22px;
    padding: 16px;
    background: #f7faf5;
    border: 1px solid #e2eadd;
    border-radius: 12px;
}
body .quickorder-form .quickorder-product > .quickorder-cell {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    vertical-align: middle;
}
body .quickorder-form .quickorder-product > .quickorder-image {
    grid-column: 1;
    grid-row: 1 / 3;
}
body .quickorder-form .quickorder-product .quickorder-image img {
    display: block;
    width: 72px;
    max-width: 72px;
    max-height: 88px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
body .quickorder-form .quickorder-product > .quickorder-cell:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1;
}
body .quickorder-form .quickorder-product a {
    color: #344d65;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}
body .quickorder-form .quickorder-product a:hover { color: #39832b; }
body .quickorder-form .quickorder-product .quickorder-quantity-wrapper {
    grid-column: 2;
    grid-row: 2;
}
body .quickorder-form .quickorder-quantity-inner { display: inline-flex; align-items: center; gap: 4px; }
body .quickorder-form .quickorder-quantity-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    padding: 0;
    color: #4f657c;
    font-size: 21px;
    line-height: 1;
    border-radius: 6px;
}
body .quickorder-form .quickorder-quantity-button:hover { background: #eaf0f6; }
body .quickorder-form .quickorder-quantity-description { display: none; }
body .quickorder-form .quickorder-product .quickorder-quantity-field input {
    width: 42px;
    height: 34px;
    min-height: 34px;
    padding: 4px;
    border-radius: 7px;
    text-align: center;
}
body .quickorder-form .quickorder-product .quickorder-price-cell {
    grid-column: 3;
    grid-row: 2;
    color: #172b40;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}
body .quickorder-form .quickorder-product::before,
body .quickorder-form .quickorder-product::after { display: none; }
body .quickorder-form .quickorder-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 18px;
}
body .quickorder-form .quickorder-fields > .quickorder-row,
body .quickorder-form .quickorder-comment {
    display: block;
    min-width: 0;
    margin: 0;
}
body .quickorder-form .quickorder-fields .quickorder-field-name,
body .quickorder-form .quickorder-comment > .quickorder-name {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 7px;
    padding: 0;
    color: #52657a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
body .quickorder-form .quickorder-field-value,
body .quickorder-form .quickorder-comment > .quickorder-value {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}
body .quickorder-form .quickorder-field-value .quickorder-row { margin: 0; }
body .quickorder-form input[type="text"],
body .quickorder-form textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d5deea;
    border-radius: 8px;
    background: #fff;
    color: #23364a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
body .quickorder-form textarea { min-height: 72px; resize: vertical; }
body .quickorder-form input[type="text"]:focus,
body .quickorder-form textarea:focus {
    border-color: #85b478;
    outline: none;
    box-shadow: 0 0 0 3px rgb(57 131 43 / 10%);
}
body .quickorder-form .quickorder-total-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 16px;
    padding: 17px 0 0;
    border-top: 1px solid #e8edf3;
}
body .quickorder-form .quickorder-total-wrap::before,
body .quickorder-form .quickorder-total-wrap::after { display: none; }
body .quickorder-form .quickorder-total-wrap > .quickorder-name,
body .quickorder-form .quickorder-total-wrap > .quickorder-value {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    color: #172b40;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}
body .quickorder-form .quickorder-total-wrap > .quickorder-name { font-size: 15px; font-weight: 600; }

/* A single quiet panel, with two distinct consent fields. */
#js-order-form .cactus-consents {
    display: grid;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-top: 14px;
    padding: 15px 16px;
    background: #f7faf5;
    border: 1px solid #e2eadd;
    border-radius: 10px;
    text-align: left;
}
#js-order-form .cactus-consents .cactus-consents__row,
#js-order-form .cactus-consents .wa-field-wrapper {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}
body .quickorder-form .quickorder-terms {
    box-sizing: border-box;
    margin: 0;
    padding: 0 15px 15px;
    background: #f7faf5;
    border: 1px solid #e2eadd;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}
body .quickorder-form .nv-quickorder-consent {
    margin: 0;
    padding: 15px 15px 12px;
    border: 1px solid #e2eadd;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}
#js-order-form .cactus-consents .wa-checkbox-wrapper,
body .quickorder-form .quickorder-terms > label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    color: #60738a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    cursor: pointer;
}
#js-order-form .cactus-consents .wa-text,
body .quickorder-form .quickorder-terms > label > div {
    display: block !important;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    overflow-wrap: break-word;
}
body .quickorder-form .quickorder-terms p { margin: 0; font-size: inherit; line-height: inherit; }
#js-order-form .cactus-consents .s-checkbox {
    display: inline-flex;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
}
#js-order-form .cactus-consents .s-checkbox > span { display: none !important; }
#js-order-form .cactus-consents input.wa-checkbox[type="checkbox"],
body .quickorder-form .quickorder-terms input[type="checkbox"] {
    box-sizing: border-box;
    appearance: none !important;
    -webkit-appearance: none !important;
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
    transform: none !important;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #b8c5d5 !important;
    border-radius: 4px !important;
    background: #fff !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(24 43 63 / 4%);
}
#js-order-form .cactus-consents input.wa-checkbox:checked,
body .quickorder-form .quickorder-terms input[type="checkbox"]:checked {
    border-color: #39832b !important;
    background: #39832b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat !important;
}
#js-order-form .cactus-consents input.wa-checkbox:focus-visible,
body .quickorder-form .quickorder-terms input[type="checkbox"]:focus-visible {
    outline: 3px solid rgb(57 131 43 / 22%);
    outline-offset: 2px;
}
#js-order-form .cactus-consents input.wa-checkbox.wa-error,
body .quickorder-form .quickorder-terms.is-error input[type="checkbox"] {
    border-color: #c92b35 !important;
}
#js-order-form .cactus-consents a,
body .quickorder-form .quickorder-terms a {
    color: #39762f;
    text-decoration: underline;
    text-decoration-color: #afcba6;
    text-underline-offset: 3px;
    transition: color .15s;
}
#js-order-form .cactus-consents a:hover,
body .quickorder-form .quickorder-terms a:hover { color: #39832b; text-decoration-color: currentColor; }
#js-order-form .cactus-consents .wa-error-text,
body .quickorder-form .nv-consent-error,
body .quickorder-form .quickorder-terms-error {
    margin: 6px 0 0 28px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: #bd3341;
    font-size: 12px;
    line-height: 1.5;
}
body .quickorder-form .quickorder-form-footer { margin: 0; padding: 18px 28px 26px; border: 0; background: #fff; }
body .quickorder-form .quickorder-submit { margin: 0; padding: 0; }
body .quickorder-form [data-quickorder-submit-button],
#js-order-form .wa-step-confirm-section .js-submit-order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 9px;
    background: #39832b;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-shadow: none;
    box-shadow: none;
    transition: background .15s, box-shadow .15s;
}
body .quickorder-form [data-quickorder-submit-button]:hover,
#js-order-form .wa-step-confirm-section .js-submit-order-button:hover { background: #2e6e22; }
body .quickorder-form [data-quickorder-submit-button].nv-disabled,
#js-order-form .wa-step-confirm-section .js-submit-order-button:disabled {
    opacity: 1;
    filter: none;
    background: #e1eaf5;
    color: #71859d;
    cursor: not-allowed;
}
#js-order-form .wa-step-confirm-section .wa-comment-section { margin-bottom: 22px; }
#js-order-form .wa-step-confirm-section .wa-total-section { width: 100%; margin: 0 0 18px; }
#js-order-form .wa-step-confirm-section .wa-actions-section { margin-top: 0; }
#js-order-form .wa-step-confirm-section .wa-total-section .wa-item { display: flex; justify-content: space-between; gap: 20px; margin: 0 0 8px; }
#js-order-form .wa-step-confirm-section .wa-total-section .wa-name { min-width: 0; color: #7a8a9b; }
#js-order-form .wa-step-confirm-section .wa-total-section .wa-value { flex: 0 0 auto; margin: 0; text-align: right; }
#js-order-form .wa-step-confirm-section .wa-item-total { padding-top: 7px; }
#js-order-form .wa-step-confirm-section .wa-item-total .wa-name,
#js-order-form .wa-step-confirm-section .wa-item-total .wa-value { color: #172b40; font-size: 23px; font-weight: 700; }
#js-order-form .wa-step-confirm-section .wa-item-total .wa-value .wa-price { font-size: 23px !important; font-weight: 700; line-height: 1.3; }

/* The plugin's saved custom CSS uses !important for this button. */
body .quickorder-form .quickorder-submit [data-quickorder-submit-button] {
    display: flex !important;
    padding: 12px 20px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #39832b !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
}
body .quickorder-form .quickorder-submit [data-quickorder-submit-button]:hover { background: #2e6e22 !important; }
body .quickorder-form .quickorder-submit [data-quickorder-submit-button].nv-disabled {
    background: #e1eaf5 !important;
    color: #71859d !important;
    cursor: not-allowed !important;
}

@media (max-width: 600px) {
    body .w-dialog-block:has(> .quickorder-form) { max-width: calc(100vw - 20px); border-radius: 12px !important; }
    body .quickorder-form .quickorder-form-head { padding: 21px 50px 18px 20px; font-size: 21px; }
    body .quickorder-form [data-quickorder-close] { top: 20px; right: 18px; }
    body .quickorder-form .quickorder-form-content { padding: 0 20px; }
    body .quickorder-form .quickorder-form-footer { padding: 16px 20px 20px; }
    body .quickorder-form .quickorder-fields { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
    body .quickorder-form .quickorder-product { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 12px; margin-bottom: 18px; }
    body .quickorder-form .quickorder-product .quickorder-image img { width: 52px; max-width: 52px; max-height: 72px; }
    body .quickorder-form .quickorder-product a { font-size: 13px; }
    body .quickorder-form .quickorder-product .quickorder-price-cell { font-size: 14px; }
    body .quickorder-form input[type="text"], body .quickorder-form textarea { font-size: 16px; }
    #js-order-form .cactus-consents { padding: 13px; }
    body .quickorder-form .nv-quickorder-consent { padding: 13px 13px 12px; }
    body .quickorder-form .quickorder-terms:not(.nv-quickorder-consent) { padding: 0 13px 13px; }
    #js-order-form .wa-step-confirm-section .wa-item-total .wa-name,
    #js-order-form .wa-step-confirm-section .wa-item-total .wa-value .wa-price { font-size: 20px !important; }
}
@media (forced-colors: active) {
    #js-order-form .cactus-consents input.wa-checkbox[type="checkbox"],
    body .quickorder-form .quickorder-terms input[type="checkbox"] { appearance: auto !important; -webkit-appearance: checkbox !important; }
}

/* Supreme uses direct native checkboxes; quickorder has one existing terms field. */
#js-order-form .cactus-consents .wa-checkbox-wrapper > input { margin-top: 2px !important; }
#js-order-form .cactus-consents .wa-terms-section { margin: 0; }
#js-order-form .cactus-consents .wa-text p { margin: 0; font: inherit; }
#js-order-form .cactus-consents .wa-text { display:block; flex:1 1 0; min-width:0; }
body .quickorder-form .quickorder-terms.HiFormConsent {
    margin: 0 !important; padding: 14px 15px !important;
    border: 1px solid #e2eadd !important; border-radius: 10px !important;
    background: #f7faf5 !important; color: #52634d !important;
}
body .quickorder-form .quickorder-terms.HiFormConsent label {
    display:flex !important; align-items:flex-start !important; gap:10px !important;
    font: 400 13px/1.55 inherit;
}
body .quickorder-form .quickorder-terms.HiFormConsent label > span {
    display:block; flex:1 1 0; min-width:0; overflow-wrap:break-word;
}
body .quickorder-form .quickorder-terms.HiFormConsent a { color:#39762f !important; }
body .quickorder-form .quickorder-terms.HiFormConsent input[type="checkbox"] { margin:2px 0 0 !important; }
body .quickorder-form .HiFormConsent__Error { margin:6px 0 0 28px !important; color:#bd3341 !important; }
body .quickorder-form .quickorder-submit .HiQuickConsentDisabled {
    background:#e5eddf !important; color:#74816d !important; opacity:1 !important;
}
body .quickorder-form .quickorder-submit [data-quickorder-submit-button].HiQuickConsentDisabled:hover {
    background:#e5eddf !important; color:#74816d !important; cursor:not-allowed !important;
}
@media (max-width:600px) {
    body .w-dialog-block:has(> .quickorder-form) {
        width:calc(100% - 24px) !important; max-width:calc(100% - 24px);
        margin:12px auto !important;
    }
}
body .quickorder-form .quickorder-submit [data-quickorder-submit-button] { min-height:48px !important; }
#js-order-form .wa-step-confirm-section .wa-flex-wrapper { display:block; }
#js-order-form .wa-step-confirm-section .wa-actions-section { float:none; width:100%; min-width:0; max-width:none; margin:0; padding:0; }
#js-order-form .wa-step-confirm-section .wa-total-section { float:none; max-width:none; margin:0 0 18px; }
