/* CMS BitHelp checkout/cart — WP look (popupFrm + cart_page)
 * Append to /assets/css/overrides.css OR upload as /assets/css/cd-checkout-cms.css
 * and include from md/template.php after cart.css.
 * Prepared 2026-08-23 — not deployed (SSH blocked).
 */

/* Min order note like WP */
.tpl_content .cd-min-order-note,
.cart_page .cd-min-order-note {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff8e1;
    border-left: 4px solid #f6cb16;
    font-size: 14px;
}

/* Empty cart */
.tpl_content > h3.tac {
    margin: 48px 0;
    font-size: 22px;
    color: #333;
}

/* Cart list already uses cart.css — polish totals CTA like WP place_order */
.cart_page .main .itogo {
    border-radius: 14px;
    background: #f7f8fa;
    border: 1px solid #e5e8ec;
    box-shadow: 0 6px 20px rgba(18, 18, 18, 0.05);
}

.cart_page .main .itogo .btn,
.cart_page .main .itogo a.btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 16px 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6cb16 0%, #ffe066 100%);
    color: #003698;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 8px 22px rgba(246, 203, 22, 0.35);
    box-sizing: border-box;
}

.cart_page .main .itogo .btn:hover,
.cart_page .main .itogo a.btn:hover {
    transform: translateY(-1px);
}

/* ===== Order form popupFrm (Fancybox /cart/?show=order) ===== */
.popupFrm {
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 4px 16px;
    font-size: 15px;
    color: #121212;
}

.popupFrm .h1 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f6cb16;
    font-size: 22px;
    font-weight: 700;
}

.popupFrm .h3 {
    margin: 22px 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #121212;
}

.popupFrm .label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.popupFrm .input,
.popupFrm input.input,
.popupFrm select,
.popupFrm textarea {
    width: 100%;
    min-height: 44px;
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid #ccd2d9;
    border-radius: 10px;
    background: #fafbfc;
    font-size: 15px;
    color: #121212;
    box-sizing: border-box;
}

.popupFrm .input:focus,
.popupFrm input.input:focus,
.popupFrm select:focus,
.popupFrm textarea:focus {
    outline: none;
    border-color: #003698;
    box-shadow: 0 0 0 3px rgba(0, 54, 152, 0.12);
    background: #fff;
}

.popupFrm > label {
    display: block;
    margin: 0 0 10px;
    padding: 14px 16px 14px 44px;
    border: 1px solid #d7dce2;
    border-radius: 12px;
    background: #f7f8fa;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.popupFrm > label input[type="radio"] {
    position: absolute;
    left: 16px;
    top: 16px;
    margin: 0;
}

.popupFrm > label:has(input:checked),
.popupFrm > label.checked {
    border-color: #003698;
    background: #eef3fb;
    box-shadow: 0 0 0 2px rgba(0, 54, 152, 0.12);
}

.popupFrm #address {
    margin: 12px 0 8px;
    padding: 16px;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    background: #fff;
}

.popupFrm .btn,
.popupFrm button.btn,
.popupFrm input[type="submit"] {
    display: block;
    width: 100%;
    margin: 16px 0 0;
    padding: 16px 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6cb16 0%, #ffe066 100%);
    color: #003698;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(246, 203, 22, 0.35);
}

.popupFrm a.fb-ajax {
    color: #003698;
    text-decoration: underline;
}

/* Hide junk NEW on cards if any remain (WP had many; CMS catalog already cleaner) */
.goods_items .new,
.goods_items .label_new,
.goods_items .ico_new,
ul.goods_items li .new {
    display: none !important;
}


/* CMS info pages: ensure framing on BitHelp show_pages */
section.cd-info-page .tpl_content.page_text.cd-info-content,
.page_text.cd-info-content {
    display: grid;
    gap: 22px;
    max-width: 920px;
    margin: 0 auto;
}
