/* =====================================================================
   BDWebs One Page order form
   ===================================================================== */

/* Pages that only redirect to the one page checkout */
.op-redirecting {
    display: none !important;
}

/* ---------------------------------------------------------------------
   All order pages, below 1200px (where the left sidebar is hidden):
   Categories / Actions / Choose Currency go to the bottom of the page
   instead of the top, so clients see the product first.
   --------------------------------------------------------------------- */
@media only screen and (max-width: 1199px) {
    #order-standard_cart .cart-body {
        display: flex;
        flex-direction: column;
    }
    #order-standard_cart .cart-body > * {
        order: 1;
        width: 100%;
    }
    #order-standard_cart .cart-body > .sidebar-collapsed {
        order: 99;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #ddd;
    }
}

/* ---------------------------------------------------------------------
   One page checkout layout
   --------------------------------------------------------------------- */
#order-standard_cart.op-onepage .op-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
        "top    side"
        "bottom side";
    column-gap: 30px;
    align-items: start;
}
#order-standard_cart.op-onepage .op-top    { grid-area: top; min-width: 0; }
#order-standard_cart.op-onepage .op-bottom { grid-area: bottom; min-width: 0; }
#order-standard_cart.op-onepage .op-side {
    grid-area: side;
    position: sticky;
    top: 15px;
}

/* Tablet & mobile: one column. Order: products -> promo -> totals -> account/payment */
@media only screen and (max-width: 991px) {
    #order-standard_cart.op-onepage .op-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "top"
            "side"
            "bottom";
    }
    #order-standard_cart.op-onepage .op-side {
        position: static;
        margin-top: 20px;
    }
}

/* Section headings - small and plain */
#order-standard_cart.op-onepage .op-step {
    margin: 25px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
    font-weight: 600;
    color: #444;
}
#order-standard_cart.op-onepage .op-top > .op-step:first-child {
    margin-top: 0;
}

#order-standard_cart.op-onepage .op-sub-title {
    margin: 15px 0 10px;
    font-weight: 600;
    color: #005b9f;
}

/* Inline product options */
#order-standard_cart.op-onepage .op-config {
    padding: 15px 20px 5px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}
#order-standard_cart.op-onepage .op-config.op-config-empty {
    display: none;
}
#order-standard_cart.op-onepage .op-config-loading {
    padding-bottom: 10px;
}
#order-standard_cart.op-onepage .op-config .op-choice label,
#order-standard_cart.op-onepage .op-addon label {
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 4px;
}
#order-standard_cart.op-onepage .op-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}
#order-standard_cart.op-onepage .op-qty .form-control-qty {
    max-width: 110px;
}
#order-standard_cart.op-onepage .op-addon {
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
#order-standard_cart.op-onepage .op-addon.op-addon-selected {
    border-color: #008000;
    background: #f3fbf3;
}
#order-standard_cart.op-onepage .op-addon-price {
    float: right;
    font-size: 12px;
}
#order-standard_cart.op-onepage .op-item-summary {
    margin: 5px 0 10px;
    padding: 10px 12px;
    background: #f7f7f7;
    border-radius: 4px;
    font-size: 12px;
}
#order-standard_cart.op-onepage .op-item-summary .product-name,
#order-standard_cart.op-onepage .op-item-summary .product-group {
    display: none;
}

/* Domain options */
#order-standard_cart.op-onepage .op-domain-config {
    margin-top: 15px;
    padding: 5px 20px 10px;
    background: #fff;
    border: 1px solid #ddd;
}

/* Promo code - a quiet link, the box opens on click */
#order-standard_cart.op-onepage .op-promo {
    margin: 12px 0 0;
    font-size: 13px;
}
#order-standard_cart.op-onepage .op-promo-toggle {
    color: #777;
    text-decoration: underline;
}
#order-standard_cart.op-onepage .op-promo-toggle:hover {
    color: #333;
}
#order-standard_cart.op-onepage .op-promo-form {
    display: flex;
    gap: 8px;
    max-width: 380px;
}
#order-standard_cart.op-onepage .op-promo-form .form-control {
    flex: 1 1 auto;
}
#order-standard_cart.op-onepage .op-promo-applied {
    color: #555;
}
#order-standard_cart.op-onepage .op-promo-applied .btn-link {
    padding: 0 0 0 6px;
    font-size: 12px;
    vertical-align: baseline;
}
#order-standard_cart.op-onepage .op-promo-msg {
    margin-bottom: 6px;
}

/* Order summary */
#order-standard_cart.op-onepage .op-summary {
    margin: 0;
}
#order-standard_cart.op-onepage .op-summary h2 {
    margin: 0;
}
#order-standard_cart.op-onepage .op-summary-actions {
    padding-top: 10px;
}
#order-standard_cart.op-onepage .op-summary.op-loading {
    opacity: .6;
}

/* Complete order area */
#order-standard_cart.op-onepage #btnCompleteOrder {
    min-width: 260px;
}
@media only screen and (max-width: 575px) {
    #order-standard_cart.op-onepage #btnCompleteOrder {
        width: 100%;
        min-width: 0;
    }
    #order-standard_cart.op-onepage .op-config {
        padding: 12px 12px 2px;
    }
    #order-standard_cart.op-onepage .op-addon-price {
        float: none;
        display: block;
    }
}

/* Configure page (only shown when a required option needs the client's choice) */
#order-standard_cart.op-preconfig .op-preparing {
    padding: 80px 0;
    color: #777;
}
#order-standard_cart.op-preconfig .op-config {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}
#order-standard_cart.op-preconfig .op-pre-actions .btn {
    min-width: 220px;
}
@media only screen and (max-width: 575px) {
    #order-standard_cart.op-preconfig .op-pre-actions .btn {
        width: 100%;
    }
}

/* Required field the client still has to fill in (e.g. IP) */
#order-standard_cart.op-onepage .op-needs-input {
    border-color: #e0a800;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, .25);
}
#order-standard_cart.op-onepage .op-needs-input-group label {
    color: #b58105;
    font-weight: 600;
}
#order-standard_cart.op-onepage .op-pending-note {
    padding: 8px 12px;
    font-size: 13px;
}
