/* ==========================================================
   PREMIUM CHECKOUT FORM
   ========================================================== */

.checkout-container {
    --checkout-radius: 14px;
    --checkout-border: #e8e8e8;
    --checkout-focus: #b89046;
    --checkout-bg: #fcfcfc;
    --checkout-text: #333;
}

/* Space between fields */

.checkout-container .field,
.checkout-container .fields > .field,
.checkout-container .field.street,
.checkout-container fieldset {
    margin-bottom: 24px;
}

/* Labels */

.checkout-container .label {
    display: block;
    margin-bottom: 8px;
}

.checkout-container .label span {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    letter-spacing: .3px;
}

/* Required star */

.checkout-container .required > .label span:after,
.checkout-container ._required > .label span:after {
    color: #b89046;
}

/* All Inputs */

.checkout-container input[type="text"],
.checkout-container input[type="email"],
.checkout-container input[type="password"],
.checkout-container input[type="tel"],
.checkout-container input[type="number"],
.checkout-container input.input-text,
.checkout-container textarea,
.checkout-container select,
.checkout-container .select {
    width: 100%;
    height: 56px;
    border: 1px solid var(--checkout-border);
    border-radius: var(--checkout-radius);
    background: var(--checkout-bg);
    color: var(--checkout-text);
    padding: 0 18px;
    font-size: 15px;
    font-weight: 400;
    transition: all .25s ease;
    box-sizing: border-box;
    appearance: none;
}

/* Textarea */

.checkout-container textarea {
    min-height: 120px;
    padding: 16px 18px;
    resize: vertical;
}

/* Placeholder */

.checkout-container input::placeholder,
.checkout-container textarea::placeholder {
    color: #9b9b9b;
    opacity: 1;
}

/* Focus */

.checkout-container input:focus,
.checkout-container textarea:focus,
.checkout-container select:focus,
.checkout-container .select:focus {
    border-color: var(--checkout-focus);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(184, 144, 70, .12);
}

/* Hover */

.checkout-container input:hover,
.checkout-container textarea:hover,
.checkout-container select:hover {
    border-color: #cfcfcf;
}

/* Validation */

.checkout-container input.mage-error,
.checkout-container select.mage-error,
.checkout-container textarea.mage-error {
    border-color: #d9534f;
    box-shadow: none;
}

/* Control wrapper */

.checkout-container .control {
    position: relative;
}

/* Native Select */

.checkout-container select,
.checkout-container .select {
    padding-right: 50px;
    background-image:
        linear-gradient(45deg, transparent 50%, #777 50%),
        linear-gradient(135deg, #777 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* Tooltip */

.checkout-container .field-tooltip {
    right: 14px;
}

.checkout-container .field-tooltip-action:before {
    color: #999;
}

/* Field Notes */

.checkout-container .note {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
}

/* Disabled */

.checkout-container input:disabled,
.checkout-container textarea:disabled,
.checkout-container select:disabled {
    background: #f4f4f4;
    color: #999;
    cursor: not-allowed;
}

/* Autofill */

.checkout-container input:-webkit-autofill,
.checkout-container input:-webkit-autofill:hover,
.checkout-container input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #333;
}

/* Mobile */

@media (max-width:767px){

.checkout-container input,
.checkout-container select{
    height:52px;
}

}

.checkout-index-index .opc-progress-bar {
    display: none;
}
.checkout-index-index .step-title {
    display: none;
}
.checkout-index-index #opc-shipping_method {
    display: none;
}
.checkout-index-index #checkout-shipping-method-load {
    display: none;
}
.checkout-index-index .ship-via {
    display: none;
}

/* ==========================================================
   DISABLE PRODUCT LINKS - Remove these rules to restore links
   ========================================================== */

/* Disable product title links */
.product-item-name .product-item-link,
.ashir-list-header .product-item-link {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

/* Disable product image links */
.product-item-photo,
a.product.photo.product-item-photo {
    pointer-events: none;
    cursor: default;
}

/* ==========================================================
   ASHIR UI REFINEMENTS
   ========================================================== */

:root { --ashir-brown:#b4975a; --ashir-dark:#383a45; }

/* Newsletter popup: short heading + button colour */
.modal_newsletter_popup .pop-sletter-title{
    height:70px !important; display:flex; align-items:center; justify-content:center;
}
.modal_newsletter_popup .pop-sletter-title h4{ margin:0; line-height:1; }
.modal_newsletter_popup .newsletter-popup-form .action.subscribe{
    background:var(--ashir-brown) !important; border-color:var(--ashir-brown) !important; color:#fff !important;
}
.modal_newsletter_popup .newsletter-popup-form .action.subscribe:hover{
    background:var(--ashir-dark) !important; border-color:var(--ashir-dark) !important;
}

/* Category cards: hide stray description, centre image */
.ashir-child-cat-desc{ display:none !important; }
.ashir-child-cat-image{ background:#fff; text-align:center; }
.ashir-child-cat-image img{
    object-fit:contain !important; object-position:center center !important;
    padding:12px; box-sizing:border-box;
}
.category-image, .category-view .category-image{ text-align:center; }
.category-image img{ display:block; margin:0 auto; max-width:100%; }

/* Filters: no scrollbar arrows / grey line, clean pills */
#layered-filter-block .filter-options-content{ max-height:none !important; overflow:visible !important; }
#layered-filter-block .swatch-option-tooltip-layered{ display:none !important; }
#layered-filter-block .swatch-option.text{
    border:1px solid var(--ashir-brown); border-radius:50px; background:#fff;
    color:var(--ashir-dark); padding:4px 16px; margin:0 8px 8px 0; box-shadow:none; outline:0;
}
#layered-filter-block .swatch-option.selected,
#layered-filter-block .swatch-option.text:hover{
    background:var(--ashir-brown); color:#fff; border-color:var(--ashir-brown); box-shadow:none; outline:0;
}
.swatch-option.text{ line-height:16px !important; }
@media (min-width:992px){ .close-filter-fixed{ display:none !important; } }

/* Filter-toggle icon */
.filter-toggle{ display:none !important; }

/* Brown borders (toolbar, sorter, pills, cards) */
.toolbar .modes .modes-mode,
.toolbar .arrow-mode .modes-mode,
.toolbar .sorter .sorter-options,
.toolbar .sorter .sorter-action,
.products-list .ashir-list-card,
.products-grid .product-item .swatch-option,
.products-list .ashir-addto-links .action,
.mgs-products .swatch-option.text{
    border-color:var(--ashir-brown) !important;
}
.products-list .ashir-weight-table th,
.products-list .ashir-weight-table td{ border-color:var(--ashir-brown) !important; }

/* One Add-to-Quote button everywhere */
.ashir-btn-cart,
.product-item .action.tocart,
.product_quickview_content .action.tocart,
.product-info-main .action.tocart{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    min-width:200px; height:46px; padding:0 28px; line-height:1;
    background:var(--ashir-brown) !important; border:1px solid var(--ashir-brown) !important;
    color:#fff !important; border-radius:50px; opacity:1;
    font-size:14px; letter-spacing:.5px; text-transform:none; transition:all .25s ease;
}
.ashir-btn-cart span,
.product-item .action.tocart span,
.product_quickview_content .action.tocart span,
.product-info-main .action.tocart span{ font-weight:700 !important; font-size:14px !important; }

/* Hover: black -> dark slate (same as newsletter) */
.ashir-btn-cart:hover,
.product-item .action.tocart:hover,
.product_quickview_content .action.tocart:hover,
.product-info-main .action.tocart:hover,
.action.primary:hover, .btn-primary:hover, button.primary:hover{
    background:var(--ashir-dark) !important; border-color:var(--ashir-dark) !important;
    color:#fff !important; opacity:1;
}

/* Quick-view popup: no title background image */
.product_quickview_content .page-title-wrapper,
.product_quickview_content .product-name-wrapper{
    background:none !important; background-image:none !important; padding:0 !important;
}
.product_quickview_content .page-title-wrapper::before{ display:none !important; }
.product_quickview_content .page-title,
.product_quickview_content .page-title span,
.product_quickview_content .page-title a{
    color:var(--ashir-dark) !important; font-size:18px !important;
    text-transform:none !important; font-weight:700 !important;
}

/* Mega menu: three equal columns with a real width (desktop) */
@media (min-width:1200px){
    .horizontal-menu .level0.dropdown > .dropdown-menu .mega-menu-content{
        width:840px; max-width:calc(100vw - 80px);
    }
    .horizontal-menu .dropdown-menu .mega-menu-content .line{
        display:flex; flex-wrap:wrap; margin:0; padding:0;
    }
    .horizontal-menu .dropdown-menu .mega-menu-content .line > div:not(.static-content){
        flex:0 0 33.3333% !important; max-width:33.3333% !important; width:33.3333% !important;
        padding:0 !important; float:none;
    }
    .horizontal-menu .dropdown-menu .mega-menu-content .line > .static-content{
        flex:0 0 100%; max-width:100%;
    }
    .horizontal-menu .dropdown-menu .mega-menu-content .sub-menu{ margin:0; padding:0; list-style:none; }
    .horizontal-menu .dropdown-menu .mega-menu-content .sub-menu li a{
        padding:11px 24px; white-space:normal; word-break:normal; overflow-wrap:normal;
    }
}

/* ==========================================================
   CHAIN MEGA MENU (li.megamenu_dropdown): wide 3-column panel
   ========================================================== */
@media (min-width:1200px){
    /* top link: active state while the panel is open */
    body .horizontal-menu li.level0.megamenu_dropdown:hover > a.level0{
        color:var(--ashir-brown); box-shadow:inset 0 -3px 0 var(--ashir-brown);
    }
    body .horizontal-menu li.level0.megamenu_dropdown > a .icon-next i{ transition:transform .25s ease; }
    body .horizontal-menu li.level0.megamenu_dropdown:hover > a .icon-next i{ transform:rotate(180deg); }

    /* panel */
    body .horizontal-menu li.level0.megamenu_dropdown > ul.dropdown-menu{
        width:min(1100px, calc(100vw - 80px)); min-width:0;
        left:50%; right:auto; margin-top:0 !important; padding:30px 0 0;
        background:#fff; border-radius:12px; box-shadow:0 24px 60px rgba(20,24,40,.14);
        transform:translate(-50%,15px);
    }
    body .horizontal-menu li.level0.megamenu_dropdown:hover > ul.dropdown-menu{ transform:translate(-50%,0); }
    /* keeps hover alive across the gap between link and panel */
    body .horizontal-menu li.level0.megamenu_dropdown > ul.dropdown-menu::before{
        content:''; position:absolute; left:0; right:0; top:-20px; height:20px;
    }
    body .horizontal-menu li.level0.megamenu_dropdown > ul.dropdown-menu > li{ padding:0; margin:0; }

    /* three equal columns with dividers */
    body .horizontal-menu .megamenu_dropdown .dropdown-menu .pagebuilder-column-line{ display:flex; width:100%; }
    body .horizontal-menu .megamenu_dropdown .dropdown-menu .pagebuilder-column{
        flex:1 1 33.3333% !important; width:33.3333% !important; max-width:33.3333%;
        padding:0 32px 8px !important; box-sizing:border-box; min-height:120px;
    }
    body .horizontal-menu .megamenu_dropdown .dropdown-menu .pagebuilder-column + .pagebuilder-column{
        border-left:1px solid #eceef2;
    }

    /* column heading */
    body .horizontal-menu .megamenu_dropdown .dropdown-menu .pagebuilder-column h2{
        margin:0 0 20px; font-size:17px; font-weight:700; line-height:1.3;
        letter-spacing:1px; text-transform:uppercase; color:#6b7085;
    }

    /* category rows: thumbnail + name + chevron */
    body .horizontal-menu .megamenu_dropdown .ashir-child-category-list__list{
        list-style:none; margin:0; padding:0;
    }
    body .horizontal-menu .megamenu_dropdown .ashir-child-category-list__item{ margin:0 0 14px; padding:0; }
    body .horizontal-menu .megamenu_dropdown .dropdown-menu a.ashir-child-category-list__link{
        display:flex; align-items:center; justify-content:flex-start; gap:18px;
        padding:2px 0 !important; background:transparent !important;
        font-size:17px; font-weight:500; line-height:1.3; color:#1f2340;
        transition:color .2s ease;
    }
    body .horizontal-menu .megamenu_dropdown .dropdown-menu a.ashir-child-category-list__link:hover{
        color:var(--ashir-brown); background:transparent !important;
    }
    body .horizontal-menu .megamenu_dropdown .ashir-child-category-list__thumb{
        flex:0 0 64px; width:64px; height:64px; border-radius:8px; overflow:hidden;
        background:#ffffff; display:block; box-shadow:0px 0px 6px #dedede; padding:4px 4px;
        box-sizing:border-box;
    }
    body .horizontal-menu .megamenu_dropdown .ashir-child-category-list__thumb img{
        width:100%; height:100%; object-fit:cover; display:block;
    }
    body .horizontal-menu .megamenu_dropdown .ashir-child-category-list__name{ flex:1 1 auto; min-width:0; }
    body .horizontal-menu .megamenu_dropdown .ashir-child-category-list__count{ display:none; }

    /* optional footer row: add an HTML Code element with <div class="mm-view-all"><a href="...">View All Chains</a></div> */
    body .horizontal-menu .megamenu_dropdown .mm-view-all{
        margin-top:14px; border-top:1px solid #eceef2;
    }
    body .horizontal-menu .megamenu_dropdown .dropdown-menu .mm-view-all a{
        display:flex; align-items:center; justify-content:space-between;
        padding:20px 32px; font-size:20px; font-weight:600; color:#8a6d2f; background:transparent !important;
    }
    body .horizontal-menu .megamenu_dropdown .dropdown-menu .mm-view-all a:hover{ color:var(--ashir-dark); }
    body .horizontal-menu .megamenu_dropdown .dropdown-menu .mm-view-all a::after{
        content:''; width:18px; height:18px;
        background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a6d2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
    }
}

/* Grid view: image card + full-width Add to Quote (matches list view) */
.products.grid .product-top{
    position:relative; overflow:hidden; background:#fff;
    border:1px solid var(--ashir-brown); border-radius:8px;
}
.products.grid .product-top a.product-item-photo{
    display:block !important; position:relative !important;
    height:auto !important; padding:0 !important;
}
.products.grid .product-top a.product-item-photo img.product-image-photo{
    position:static !important; display:block; width:100%; height:220px; min-width:0 !important;
    object-fit:contain; padding:16px; box-sizing:border-box;
}
.products.grid .product-top .img-hover-show{ display:none !important; }
.products.grid .product-item:hover .product-top .product-item-photo.has-hover-image > img:not(.img-hover-show){
    opacity:1 !important; visibility:visible !important;
}
.products.grid .product-item-details .ashir-add-to-cart-wrap{ display:block !important; margin:12px 0; }
.products.grid .product-item-details .action.tocart{
    display:inline-flex !important; width:100%;
    position:static !important; visibility:visible !important; opacity:1 !important;
}
.products.grid .product-item-details .action.tocart .icon{ font-size:16px; line-height:1; }

/* Hide prices site-wide */
.price-box, .price-container, .price-wrapper, .old-price, .special-price, .prices-tier,
.logintoseeprice,
.product_quickview_content .product-info-price,
.minicart-wrapper .subtotal,
.minicart-items .product-item-pricing .price-container,
.minicart-items .product-item-pricing .details-map,
.cart.table-wrapper .col.price, .cart.table-wrapper .col.subtotal,
.cart-summary .cart-totals, .cart-summary .summary.title,
.opc-block-summary .table-totals, .opc-block-summary .items-in-cart .price,
.checkout-container .table-totals{
    display:none !important;
}

/* Minicart: only one action button (fallback if template not overridden) */
.block-minicart .actions .secondary{ display:none !important; }

/* Quote request page (replaces checkout) */
.ashir-quote-request-page{ max-width:920px; margin:40px auto; padding:0 16px; }
.ashir-quote-request-page .page-title{
    font-size:30px; font-weight:700; text-transform:uppercase; color:var(--ashir-dark); margin-bottom:24px;
}
.ashir-quote-items{ background:#fff; border:1px solid #e8e8e8; border-radius:14px; padding:8px 24px 20px; margin-bottom:28px; }
.ashir-quote-items table{ width:100%; border-collapse:collapse; }
.ashir-quote-items th{ text-align:left; font-size:13px; text-transform:uppercase; letter-spacing:.5px;
    color:var(--ashir-dark); padding:14px 8px; border-bottom:2px solid var(--ashir-brown); }
.ashir-quote-items td{ padding:14px 8px; border-bottom:1px solid #eee; font-size:14px; }
.ashir-quote-items .action.back{ display:inline-block; margin-top:14px; color:var(--ashir-brown); font-weight:600; }

.ashir-quote-form .fieldset{
    display:grid; grid-template-columns:1fr 1fr; gap:20px 24px;
    background:#fff; border:1px solid #e8e8e8; border-radius:14px; padding:32px; margin:0 0 24px;
}
.ashir-quote-form .legend{ grid-column:1 / -1; font-size:18px; font-weight:700; color:var(--ashir-dark); margin-bottom:4px; }
.ashir-quote-form .legend + br{ display:none; }
.ashir-quote-form .field{ margin:0; }
.ashir-quote-form .field.message{ grid-column:1 / -1; }
.ashir-quote-form .label span{ font-size:13px; font-weight:600; color:#444; }
.ashir-quote-form .field.required > .label span:after{ content:' *'; color:var(--ashir-brown); }
.ashir-quote-form input.input-text, .ashir-quote-form textarea{
    width:100%; height:52px; padding:0 18px; border:1px solid var(--ashir-brown);
    border-radius:12px; background:#fff; font-size:15px; box-sizing:border-box; transition:all .25s;
}
.ashir-quote-form textarea{ height:auto; min-height:120px; padding:14px 18px; }
.ashir-quote-form input:focus, .ashir-quote-form textarea:focus{
    outline:0; box-shadow:0 0 0 4px rgba(180,151,90,.15);
}
.ashir-quote-form .actions-toolbar{ text-align:right; }
.ashir-quote-form .action.submit{ min-width:220px; }
@media (max-width:767px){
    .ashir-quote-form .fieldset{ grid-template-columns:1fr; padding:20px; }
}

/* Minicart: gap above the action button */
.block-minicart .block-content .actions{ margin-top:24px; }

/* ==========================================================
   CHECKOUT PAGE: full width, two-column card form with icons
   ========================================================== */
.checkout-index-index{
    --ico-mail:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23464a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
    --ico-user:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23464a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1'/%3E%3C/svg%3E");
    --ico-building:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23464a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='1'/%3E%3Cpath d='M9 7h2M13 7h2M9 11h2M13 11h2M9 15h2M13 15h2'/%3E%3C/svg%3E");
    --ico-globe:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23464a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E");
    --ico-pin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23464a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
    --ico-home:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23464a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E");
    --ico-city:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23464a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V9h6v12M9 21V4h6v17M15 21V11h6v10'/%3E%3Cpath d='M12 8h.01M12 12h.01M6 13h.01M18 15h.01'/%3E%3C/svg%3E");
    --ico-zip:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23464a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E");
    --ico-phone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23464a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
    --ico-caret:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23333'/%3E%3C/svg%3E");
    --ico-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* No sidebar, full width */
.checkout-index-index .opc-sidebar,
.checkout-index-index .opc-summary-wrapper{ display:none !important; }
.checkout-index-index .opc-wrapper{ width:100% !important; max-width:100% !important; float:none !important; padding-right:0 !important; }
.checkout-index-index .opc-wrapper .step-title{ display:none !important; }

/* Card */
.checkout-index-index .opc-wrapper .opc > li.checkout-shipping-address,
.checkout-index-index .opc-wrapper .opc > li.checkout-payment-method{
    background:#fff; border:1px solid #eceef2; border-radius:14px;
    padding:30px 30px 26px; margin:0 0 24px;
}
.checkout-index-index .opc-wrapper .step-content{ margin:0; }

/* Email block */
.checkout-index-index .opc-wrapper .form-login{ margin:0 0 20px; padding:0; border:0; }
.checkout-index-index .opc-wrapper .form-login .fieldset{ margin:0; }
.checkout-index-index .opc-wrapper .form-login .fieldset > .field{ margin:0; }
.checkout-index-index .opc-wrapper .form-login .control._with-tooltip{
    display:flex; align-items:center; gap:14px;
}
.checkout-index-index .opc-wrapper .form-login .field-tooltip{ position:static; margin:0; }
.checkout-index-index .opc-wrapper .form-login .note{
    margin:8px 0 0; font-size:13px; color:#8a8fa3;
}

/* Two-column grid */
.checkout-index-index .opc-wrapper #shipping-new-address-form{
    display:grid; grid-template-columns:1fr 1fr; gap:22px 28px; margin:0;
}
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field{
    margin:0 !important; width:auto !important; float:none !important;
    display:block; order:20;
}
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field[name="shippingAddress.firstname"]{ order:1; }
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field[name="shippingAddress.lastname"]{ order:2; }
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field[name="shippingAddress.company"]{ order:3; grid-column:1 / -1; }
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field[name="shippingAddress.country_id"]{ order:4; }
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field[name="shippingAddress.region_id"],
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field[name="shippingAddress.region"]{ order:5; }
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field.street{ order:6; grid-column:1 / -1; }
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field[name="shippingAddress.city"]{ order:7; }
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field[name="shippingAddress.postcode"]{ order:8; }
.checkout-index-index .opc-wrapper #shipping-new-address-form > .field[name="shippingAddress.telephone"]{ order:9; grid-column:1 / -1; }

/* Labels */
.checkout-index-index .opc-wrapper .field > .label{ display:block; margin:0 0 8px; }
.checkout-index-index .opc-wrapper .field > .label span{
    font-size:14px; font-weight:500; color:#3b3f5c; letter-spacing:.2px;
}
.checkout-index-index .opc-wrapper .field.required > .label span:after,
.checkout-index-index .opc-wrapper .field._required > .label span:after{
    content:' *'; color:#e02b27; margin:0;
}
.checkout-index-index .opc-wrapper .field[name="shippingAddress.company"] > .label span:after{
    content:' (Optional)'; color:#8a8fa3; font-weight:400;
}

/* Inputs and selects */
.checkout-index-index .opc-wrapper .field .control input.input-text,
.checkout-index-index .opc-wrapper .field .control select,
.checkout-index-index .opc-wrapper #customer-email{
    width:100%; height:52px; box-sizing:border-box;
    background-color:#f7f8fa; border:1px solid #e3e5ea; border-radius:8px;
    padding:0 18px 0 52px !important; font-size:15px; color:#2f3350; box-shadow:none;
    background-repeat:no-repeat; background-position:18px 50%; background-size:20px 20px;
}
.checkout-index-index .opc-wrapper .field .control select{
    appearance:none; -webkit-appearance:none; padding-right:44px !important;
    background-repeat:no-repeat, no-repeat;
    background-position:18px 50%, calc(100% - 18px) 50%;
    background-size:20px 20px, 10px 6px;
}
.checkout-index-index .opc-wrapper .field .control input.input-text:focus,
.checkout-index-index .opc-wrapper .field .control select:focus,
.checkout-index-index .opc-wrapper #customer-email:focus{
    background-color:#fff; border-color:var(--ashir-brown);
    box-shadow:0 0 0 4px rgba(180,151,90,.15); outline:0;
}
.checkout-index-index .opc-wrapper .field .control input::placeholder{ color:#9aa0b0; }

/* Field icons */
.checkout-index-index .opc-wrapper #customer-email{ background-image:var(--ico-mail); }
.checkout-index-index .opc-wrapper .field[name="shippingAddress.firstname"] input,
.checkout-index-index .opc-wrapper .field[name="shippingAddress.lastname"] input{ background-image:var(--ico-user); }
.checkout-index-index .opc-wrapper .field[name="shippingAddress.company"] input{ background-image:var(--ico-building); }
.checkout-index-index .opc-wrapper .field[name="shippingAddress.country_id"] select{ background-image:var(--ico-globe), var(--ico-caret); }
.checkout-index-index .opc-wrapper .field[name="shippingAddress.region_id"] select{ background-image:var(--ico-pin), var(--ico-caret); }
.checkout-index-index .opc-wrapper .field[name="shippingAddress.region"] input{ background-image:var(--ico-pin); }
.checkout-index-index .opc-wrapper .field[name="shippingAddress.street.0"] input{ background-image:var(--ico-home); }
.checkout-index-index .opc-wrapper .field[name="shippingAddress.city"] input{ background-image:var(--ico-city); }
.checkout-index-index .opc-wrapper .field[name="shippingAddress.postcode"] input{ background-image:var(--ico-zip); }
.checkout-index-index .opc-wrapper .field[name="shippingAddress.telephone"] input{ background-image:var(--ico-phone); }

/* Street: two stacked lines */
.checkout-index-index .opc-wrapper .field.street .control{ display:block; }
.checkout-index-index .opc-wrapper .field.street .control .field{ margin:0 0 14px; }
.checkout-index-index .opc-wrapper .field.street .control .field:last-child{ margin-bottom:0; }
.checkout-index-index .opc-wrapper .field.street .control .field .label{
    position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0);
}

/* Phone tooltip sits outside the input */
.checkout-index-index .opc-wrapper .field[name="shippingAddress.telephone"] .control._with-tooltip{
    display:flex; align-items:center; gap:14px;
}
.checkout-index-index .opc-wrapper .field[name="shippingAddress.telephone"] .field-tooltip{ position:static; margin:0; }

/* Next button */
.checkout-index-index .opc-wrapper .actions-toolbar .primary:has(> button.continue){
    display:flex; justify-content:flex-end; float:none;
}
.checkout-index-index .opc-wrapper button.action.continue.primary{
    display:inline-flex; align-items:center; justify-content:center; gap:10px;
    min-width:190px; height:52px; padding:0 34px; margin:0;
    background:var(--ashir-brown) !important; border:1px solid var(--ashir-brown) !important;
    border-radius:50px; color:#fff !important;
    font-size:14px; font-weight:700; letter-spacing:1px; text-transform:uppercase; line-height:1;
}
.checkout-index-index .opc-wrapper button.action.continue.primary::after{
    content:''; width:20px; height:20px; flex:0 0 20px;
    background:var(--ico-arrow) no-repeat center / contain;
}
.checkout-index-index .opc-wrapper button.action.continue.primary:hover{
    background:var(--ashir-dark) !important; border-color:var(--ashir-dark) !important;
}
.checkout-index-index #shipping-method-buttons-container{ margin:18px 0 0; }

@media (max-width:767px){
    .checkout-index-index .opc-wrapper .opc > li.checkout-shipping-address,
    .checkout-index-index .opc-wrapper .opc > li.checkout-payment-method{ padding:20px 16px; }
    .checkout-index-index .opc-wrapper #shipping-new-address-form{ grid-template-columns:1fr; }
    .checkout-index-index .opc-wrapper #shipping-new-address-form > .field{ grid-column:1 / -1; }
}