/*
 * Bahía Cloud Purchase Flow Visual Layer v2.2.0
 * Visual-only. Does not replace forms, IDs, AJAX or native checkout logic.
 */

html.bc-purchase-flow {
    --bc-flow-bg: #f4f8fc;
    --bc-flow-surface: #ffffff;
    --bc-flow-surface-soft: #f8fbfe;
    --bc-flow-text: #0d2b4f;
    --bc-flow-muted: #647b96;
    --bc-flow-border: #d7e4ef;
    --bc-flow-border-strong: #bfd2e3;
    --bc-flow-navy: #0d477f;
    --bc-flow-navy-dark: #082f59;
    --bc-flow-cyan: #20bdc9;
    --bc-flow-cyan-dark: #109aa9;
    --bc-flow-cyan-soft: #e8f9fb;
    --bc-flow-success: #0e9c85;
    --bc-flow-danger: #d84b68;
    --bc-flow-warning: #fff1dc;
    --bc-flow-shadow: 0 18px 46px rgba(20, 61, 101, 0.10);
    --bc-flow-radius: 14px;
    --bc-flow-radius-sm: 10px;
    min-height: 100%;
    background: var(--bc-flow-bg) !important;
}

html.bc-purchase-flow body.page-order,
html.bc-purchase-flow body.page-configureproduct,
html.bc-purchase-flow body.page-viewcart {
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    background: var(--bc-flow-bg) !important;
    color: var(--bc-flow-text) !important;
}

html.bc-purchase-flow body.page-order .app-main,
html.bc-purchase-flow body.page-configureproduct .app-main,
html.bc-purchase-flow body.page-viewcart .app-main {
    width: 100% !important;
    min-width: 0 !important;
    background:
        radial-gradient(circle at 76% 2%, rgba(32, 189, 201, 0.09), transparent 27%),
        var(--bc-flow-bg) !important;
}

html.bc-purchase-flow body.page-order .app-main > .main-header,
html.bc-purchase-flow body.page-configureproduct .app-main > .main-header,
html.bc-purchase-flow body.page-viewcart .app-main > .main-header {
    margin: 0 !important;
    padding: clamp(42px, 5vw, 68px) 0 28px !important;
    background: transparent !important;
    border: 0 !important;
}

html.bc-purchase-flow body.page-order .main-header > .container,
html.bc-purchase-flow body.page-order .main-body > .container,
html.bc-purchase-flow body.page-configureproduct .main-header > .container,
html.bc-purchase-flow body.page-configureproduct .main-body > .container,
html.bc-purchase-flow body.page-viewcart .main-header > .container,
html.bc-purchase-flow body.page-viewcart .main-body > .container {
    width: min(calc(100% - 48px), 1320px) !important;
    max-width: 1320px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

html.bc-purchase-flow body.page-order .main-header-title,
html.bc-purchase-flow body.page-configureproduct .main-header-title,
html.bc-purchase-flow body.page-viewcart .main-header-title {
    margin: 0 !important;
    color: var(--bc-flow-text) !important;
    font-size: clamp(38px, 4.1vw, 56px) !important;
    font-weight: 800 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.04em !important;
}

html.bc-purchase-flow .bc-flow-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    color: #7b8ea5;
    font-size: 15px;
    line-height: 1.5;
}

html.bc-purchase-flow .bc-flow-breadcrumbs a {
    color: var(--bc-flow-cyan-dark);
    font-weight: 600;
    text-decoration: none;
}

html.bc-purchase-flow .bc-flow-breadcrumbs a:hover,
html.bc-purchase-flow .bc-flow-breadcrumbs a:focus {
    color: var(--bc-flow-navy);
    text-decoration: underline;
}

html.bc-purchase-flow .bc-flow-breadcrumbs__separator {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    color: #9cb0c3;
    font-size: 16px;
}

html.bc-purchase-flow .main-body {
    padding-bottom: clamp(58px, 7vw, 100px) !important;
}

html.bc-purchase-flow .panel,
html.bc-purchase-flow .section,
html.bc-purchase-flow .message {
    min-width: 0;
}

html.bc-purchase-flow input,
html.bc-purchase-flow select,
html.bc-purchase-flow textarea,
html.bc-purchase-flow button {
    font-family: inherit;
}

/* ======================================================================
   Configure product
   ====================================================================== */

html.bc-purchase-flow--configure body.page-configureproduct .main-grid,
html.bc-purchase-flow--configure body.page-order.page-configureproduct .main-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    align-items: start !important;
    gap: 24px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

html.bc-purchase-flow--configure body.page-configureproduct .main-grid > .main-content,
html.bc-purchase-flow--configure body.page-order.page-configureproduct .main-grid > .main-content {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

html.bc-purchase-flow--configure body.page-configureproduct .main-grid > .main-sidebar,
html.bc-purchase-flow--configure body.page-order.page-configureproduct .main-grid > .main-sidebar {
    display: block !important;
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 360px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.bc-purchase-flow--configure .sidebar-sticky-summary,
html.bc-purchase-flow--configure #orderSummary {
    position: sticky !important;
    top: 22px !important;
}

html.bc-purchase-flow--configure .main-content > .section,
html.bc-purchase-flow--configure #productAddonsContainer {
    margin-bottom: 28px !important;
}

html.bc-purchase-flow--configure .product-config-info {
    overflow: hidden;
    margin: 0 !important;
    border: 1px solid var(--bc-flow-border) !important;
    border-radius: var(--bc-flow-radius) !important;
    background: var(--bc-flow-surface) !important;
    box-shadow: 0 10px 30px rgba(17, 57, 94, 0.06) !important;
}

html.bc-purchase-flow--configure .product-config-info .panel-body {
    position: relative;
    min-height: 166px;
    padding: 28px 30px 28px 144px !important;
}

html.bc-purchase-flow--configure .bc-flow-product-icon {
    position: absolute;
    top: 28px;
    left: 28px;
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 1px solid #d9edf2;
    border-radius: 14px;
    background: linear-gradient(145deg, #f2fbfd, #e8f3f7);
    color: var(--bc-flow-cyan-dark);
}

html.bc-purchase-flow--configure .bc-flow-product-icon svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

html.bc-purchase-flow--configure .product-config-info h2,
html.bc-purchase-flow--configure .product-config-info .gap-2x {
    margin: 0 0 14px !important;
    color: var(--bc-flow-text) !important;
    font-size: clamp(22px, 2vw, 28px) !important;
    font-weight: 800 !important;
    line-height: 1.22 !important;
    letter-spacing: -0.025em !important;
}

html.bc-purchase-flow--configure .product-config-info .product-info {
    color: var(--bc-flow-muted) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

html.bc-purchase-flow--configure .product-config-info .product-info p {
    margin: 0 0 16px !important;
}

html.bc-purchase-flow--configure .product-config-info .product-info ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html.bc-purchase-flow--configure .product-config-info .product-info li {
    position: relative;
    margin: 0 !important;
    padding-left: 24px !important;
    break-inside: avoid;
}

html.bc-purchase-flow--configure .product-config-info .product-info li::before {
    position: absolute;
    top: 0.42em;
    left: 0;
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    border-radius: 50%;
    background: var(--bc-flow-cyan-dark);
    color: #fff;
    content: "✓";
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

html.bc-purchase-flow--configure #sectionCycles .section-header,
html.bc-purchase-flow--configure #productAddonsContainer .section-header {
    margin-bottom: 14px !important;
}

html.bc-purchase-flow--configure #sectionCycles .section-title,
html.bc-purchase-flow--configure #productAddonsContainer .section-title,
html.bc-purchase-flow--configure .main-content > .section > .section-header .section-title {
    margin: 0 !important;
    color: #304c6d !important;
    font-size: clamp(22px, 2vw, 27px) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

html.bc-purchase-flow--configure #sectionCycles .panel-check-group {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 0 !important;
}

html.bc-purchase-flow--configure #sectionCycles .panel-check-group > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

html.bc-purchase-flow--configure #sectionCycles .panel-check {
    height: 100% !important;
    min-height: 128px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--bc-flow-border) !important;
    border-radius: 12px !important;
    background: var(--bc-flow-surface) !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

html.bc-purchase-flow--configure #sectionCycles .panel-check:hover {
    border-color: #8fcbd3 !important;
    box-shadow: 0 12px 28px rgba(16, 93, 113, 0.08) !important;
    transform: translateY(-2px);
}

html.bc-purchase-flow--configure #sectionCycles .panel-check.checked {
    border-color: var(--bc-flow-cyan) !important;
    background: linear-gradient(145deg, #ffffff, #f2fbfc) !important;
    box-shadow: 0 0 0 1px rgba(32, 189, 201, .12) !important;
}

html.bc-purchase-flow--configure #sectionCycles .check,
html.bc-purchase-flow--configure #sectionCycles label {
    display: block !important;
    height: 100% !important;
    margin: 0 !important;
}

html.bc-purchase-flow--configure #sectionCycles label {
    position: relative;
    padding: 20px 20px 18px 48px !important;
    cursor: pointer;
}

html.bc-purchase-flow--configure #sectionCycles input[type="radio"] {
    position: absolute !important;
    top: 22px !important;
    left: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: var(--bc-flow-cyan-dark);
}

html.bc-purchase-flow--configure #sectionCycles .check-title {
    margin: 0 !important;
    color: #294665 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

html.bc-purchase-flow--configure #sectionCycles .check-title br + * {
    font-weight: 800 !important;
}

html.bc-purchase-flow--configure #sectionCycles .check-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0 !important;
    color: var(--bc-flow-muted) !important;
}

html.bc-purchase-flow--configure #sectionCycles .label-save {
    border-radius: 999px !important;
    background: #ffe8ef !important;
    color: #d63366 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

html.bc-purchase-flow--configure #productAddonsContainer .panel,
html.bc-purchase-flow--configure #productAddonsContainer .panel-check,
html.bc-purchase-flow--configure .addon-products .panel {
    border: 1px solid var(--bc-flow-border) !important;
    border-radius: 12px !important;
    background: var(--bc-flow-surface) !important;
    box-shadow: none !important;
}

html.bc-purchase-flow--configure #productAddonsContainer .panel-body,
html.bc-purchase-flow--configure #productAddonsContainer .panel-check > div,
html.bc-purchase-flow--configure .addon-products .panel-body {
    padding: 20px !important;
}

html.bc-purchase-flow--configure #productAddonsContainer input[type="checkbox"],
html.bc-purchase-flow--configure .addon-products input[type="checkbox"] {
    width: 19px !important;
    height: 19px !important;
    accent-color: var(--bc-flow-cyan-dark);
}

html.bc-purchase-flow--configure .panel-summary-configuration,
html.bc-purchase-flow--configure #orderSummary .panel-summary {
    overflow: hidden !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: var(--bc-flow-radius) !important;
    background:
        radial-gradient(circle at 100% 0, rgba(38, 173, 219, .24), transparent 35%),
        linear-gradient(160deg, var(--bc-flow-navy) 0%, var(--bc-flow-navy-dark) 100%) !important;
    box-shadow: var(--bc-flow-shadow) !important;
    color: #fff !important;
}

html.bc-purchase-flow--configure .panel-summary-configuration .panel-heading,
html.bc-purchase-flow--configure #orderSummary .panel-summary .panel-heading {
    padding: 24px 24px 8px !important;
    border: 0 !important;
    background: transparent !important;
}

html.bc-purchase-flow--configure .panel-summary-configuration .panel-title,
html.bc-purchase-flow--configure #orderSummary .panel-summary .panel-title {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

html.bc-purchase-flow--configure .panel-summary-configuration .panel-body,
html.bc-purchase-flow--configure #orderSummary .panel-summary .panel-body {
    padding: 16px 24px !important;
    background: transparent !important;
}

html.bc-purchase-flow--configure .panel-summary-configuration .summary-list,
html.bc-purchase-flow--configure #orderSummary .panel-summary .summary-list {
    margin: 0 !important;
    padding: 0 !important;
    border-color: rgba(255,255,255,.16) !important;
}

html.bc-purchase-flow--configure .panel-summary-configuration .list-item,
html.bc-purchase-flow--configure #orderSummary .panel-summary .list-item {
    color: rgba(255,255,255,.94) !important;
    border-color: rgba(255,255,255,.14) !important;
}

html.bc-purchase-flow--configure .panel-summary-configuration .faded,
html.bc-purchase-flow--configure #orderSummary .panel-summary .faded,
html.bc-purchase-flow--configure .panel-summary-configuration small {
    color: rgba(255,255,255,.68) !important;
}

html.bc-purchase-flow--configure .panel-summary-configuration .panel-footer,
html.bc-purchase-flow--configure #orderSummary .panel-summary .panel-footer {
    padding: 16px 24px 24px !important;
    border: 0 !important;
    background: transparent !important;
}

html.bc-purchase-flow--configure .panel-summary-configuration .price-total,
html.bc-purchase-flow--configure #orderSummary .panel-summary .price-total {
    color: rgba(255,255,255,.74) !important;
    font-size: 14px !important;
}

html.bc-purchase-flow--configure .panel-summary-configuration .price-amount,
html.bc-purchase-flow--configure #orderSummary .panel-summary .price-amount {
    margin-top: 4px !important;
    color: #fff !important;
    font-size: clamp(34px, 3vw, 44px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.035em !important;
}

html.bc-purchase-flow--configure #btnCompleteProductConfig,
html.bc-purchase-flow--configure .panel-summary-configuration .btn-checkout {
    min-height: 52px !important;
    margin-top: 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(90deg, #23c7d2, #20b8c6) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

html.bc-purchase-flow--configure #btnCompleteProductConfig:hover,
html.bc-purchase-flow--configure #btnCompleteProductConfig:focus {
    background: linear-gradient(90deg, #20b8c6, #119ba9) !important;
    color: #fff !important;
}

html.bc-purchase-flow .bc-flow-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.74);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

html.bc-purchase-flow .bc-flow-secure-note svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

/* ======================================================================
   Domain selection enhancements
   ====================================================================== */

html.bc-purchase-flow--domain body.page-order .main-header {
    padding-bottom: 22px !important;
}

html.bc-purchase-flow--domain body.page-order .main-grid {
    display: block !important;
    width: 100% !important;
}

html.bc-purchase-flow--domain body.page-order .main-grid > .main-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

html.bc-purchase-flow--domain body.page-order .main-grid > .main-sidebar {
    display: none !important;
}

html.bc-purchase-flow--domain .bc-selected-product,
html.bc-purchase-flow--domain .bc-flow-domain-product {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px !important;
    padding: 9px 14px !important;
    border: 1px solid #e1edf5;
    border-radius: 8px;
    background: #eef5fa !important;
    color: #244464 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

html.bc-purchase-flow--domain .bc-domain-flow,
html.bc-purchase-flow--domain .domain-selection-options,
html.bc-purchase-flow--domain .bc-flow-domain-card {
    overflow: hidden;
    border: 1px solid var(--bc-flow-border) !important;
    border-radius: var(--bc-flow-radius) !important;
    background: var(--bc-flow-surface) !important;
    box-shadow: 0 10px 30px rgba(17, 57, 94, 0.05) !important;
}

html.bc-purchase-flow--domain .bc-domain-choice-grid {
    gap: 10px !important;
    padding: 26px 30px 22px !important;
}

html.bc-purchase-flow--domain .bc-domain-choice {
    min-height: 56px !important;
    padding: 10px 14px 10px 48px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    background: transparent !important;
}

html.bc-purchase-flow--domain .bc-domain-choice:hover {
    border-color: #d6e7ef !important;
    background: #f7fbfd !important;
}

html.bc-purchase-flow--domain .bc-domain-choice.is-selected {
    border-color: #a7dce2 !important;
    background: var(--bc-flow-cyan-soft) !important;
}

html.bc-purchase-flow--domain .bc-domain-choice small.bc-flow-choice-description {
    display: block;
    margin-top: 3px;
    color: var(--bc-flow-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

html.bc-purchase-flow--domain .bc-domain-search-shell {
    margin: 0 !important;
    padding: 28px 32px !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 88% 45%, rgba(255,255,255,.16), transparent 24%),
        linear-gradient(120deg, #38c7ce, #20b8c6) !important;
}

html.bc-purchase-flow--domain .bc-domain-search-shell::after {
    opacity: .65 !important;
}

html.bc-purchase-flow--domain .bc-domain-search-title {
    margin: 0 0 18px !important;
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

html.bc-purchase-flow--domain .bc-domain-search-copy {
    color: rgba(255,255,255,.85) !important;
}

html.bc-purchase-flow--domain .bc-domain-search-shell .input-group,
html.bc-purchase-flow--domain .bc-domain-search-shell [class*="input-group"] {
    min-height: 58px !important;
    border-radius: 9px !important;
    background: #fff !important;
}

html.bc-purchase-flow--domain .bc-domain-search-input {
    min-height: 58px !important;
    border: 0 !important;
    background: #fff !important;
    color: var(--bc-flow-text) !important;
    font-size: 16px !important;
}

html.bc-purchase-flow--domain .bc-domain-search-button {
    min-width: 160px !important;
    min-height: 58px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: var(--bc-flow-navy) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

html.bc-purchase-flow--domain .bc-domain-search-button:hover,
html.bc-purchase-flow--domain .bc-domain-search-button:focus {
    background: var(--bc-flow-navy-dark) !important;
}

html.bc-purchase-flow--domain .bc-domain-note {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 22px 30px !important;
    border-top: 1px solid var(--bc-flow-border) !important;
    background: #fff !important;
    color: var(--bc-flow-muted) !important;
}

/* ======================================================================
   Checkout
   ====================================================================== */

html.bc-purchase-flow--checkout body.page-viewcart .main-grid,
html.bc-purchase-flow--checkout body.page-order.page-viewcart .main-grid,
html.bc-commerce-page.bc-purchase-flow--checkout body.page-order .main-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    align-items: start !important;
    gap: 24px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

html.bc-purchase-flow--checkout body.page-viewcart .main-grid > .main-content,
html.bc-purchase-flow--checkout body.page-order.page-viewcart .main-grid > .main-content,
html.bc-commerce-page.bc-purchase-flow--checkout body.page-order .main-grid > .main-content {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

html.bc-purchase-flow--checkout body.page-viewcart .main-grid > .main-sidebar,
html.bc-purchase-flow--checkout body.page-order.page-viewcart .main-grid > .main-sidebar,
html.bc-commerce-page.bc-purchase-flow--checkout body.page-order .main-grid > .main-sidebar {
    display: block !important;
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 360px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.bc-purchase-flow--checkout .main-sidebar .sidebar-sticky,
html.bc-purchase-flow--checkout .main-sidebar #orderSummary {
    position: sticky !important;
    top: 22px !important;
}

html.bc-purchase-flow--checkout .bc-flow-section,
html.bc-purchase-flow--checkout .view-cart-items,
html.bc-purchase-flow--checkout .checkout-security-msg,
html.bc-purchase-flow--checkout .message.message-no-data {
    overflow: hidden;
    margin-bottom: 16px !important;
    border: 1px solid var(--bc-flow-border) !important;
    border-radius: 12px !important;
    background: var(--bc-flow-surface) !important;
    box-shadow: 0 8px 24px rgba(16, 55, 90, 0.045) !important;
}

html.bc-purchase-flow--checkout .bc-flow-section > .section-header,
html.bc-purchase-flow--checkout .bc-flow-section > .panel-heading,
html.bc-purchase-flow--checkout .bc-flow-section .section-header,
html.bc-purchase-flow--checkout .bc-flow-section .panel-heading {
    padding: 18px 20px 10px !important;
    border: 0 !important;
    background: transparent !important;
}

html.bc-purchase-flow--checkout .bc-flow-section .section-title,
html.bc-purchase-flow--checkout .bc-flow-section .panel-title,
html.bc-purchase-flow--checkout .bc-flow-section h2,
html.bc-purchase-flow--checkout .bc-flow-section h3 {
    color: var(--bc-flow-text) !important;
    font-weight: 700 !important;
}

html.bc-purchase-flow--checkout .bc-flow-section > .section-body,
html.bc-purchase-flow--checkout .bc-flow-section > .panel-body,
html.bc-purchase-flow--checkout .bc-flow-section .section-body,
html.bc-purchase-flow--checkout .bc-flow-section .panel-body {
    padding: 12px 20px 20px !important;
}

html.bc-purchase-flow--checkout .bc-flow-checkout-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
}

html.bc-purchase-flow--checkout .bc-flow-checkout-grid > * {
    grid-column: 1 / -1;
    min-width: 0;
}

html.bc-purchase-flow--checkout .bc-flow-checkout-grid > .bc-flow-half {
    grid-column: span 1;
}

html.bc-purchase-flow--checkout .bc-checkout-promo {
    border-color: transparent !important;
    background: linear-gradient(110deg, #29c3ca, #20b6c4) !important;
    color: #fff !important;
}

html.bc-purchase-flow--checkout .bc-checkout-promo .section-title,
html.bc-purchase-flow--checkout .bc-checkout-promo .panel-title,
html.bc-purchase-flow--checkout .bc-checkout-promo label,
html.bc-purchase-flow--checkout .bc-checkout-promo h2,
html.bc-purchase-flow--checkout .bc-checkout-promo h3 {
    color: #fff !important;
}

html.bc-purchase-flow--checkout .bc-checkout-promo input {
    min-height: 48px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #fff !important;
}

html.bc-purchase-flow--checkout .bc-checkout-promo .btn {
    min-height: 48px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: var(--bc-flow-navy) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

html.bc-purchase-flow--checkout .view-cart-items,
html.bc-purchase-flow--checkout .cart-items,
html.bc-purchase-flow--checkout .panel-cart {
    border: 1px solid var(--bc-flow-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
}

html.bc-purchase-flow--checkout .view-cart-items .item,
html.bc-purchase-flow--checkout .view-cart-items .item-body,
html.bc-purchase-flow--checkout .cart-item {
    border-color: #e4edf5 !important;
}

html.bc-purchase-flow--checkout .form-control,
html.bc-purchase-flow--checkout input[type="text"],
html.bc-purchase-flow--checkout input[type="email"],
html.bc-purchase-flow--checkout input[type="tel"],
html.bc-purchase-flow--checkout input[type="password"],
html.bc-purchase-flow--checkout select,
html.bc-purchase-flow--checkout textarea {
    min-height: 46px !important;
    border: 1px solid var(--bc-flow-border-strong) !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: var(--bc-flow-text) !important;
    font-size: 16px !important;
    box-shadow: none !important;
}

html.bc-purchase-flow--checkout textarea {
    min-height: 110px !important;
    resize: vertical;
}

html.bc-purchase-flow--checkout .form-control:focus,
html.bc-purchase-flow--checkout input:focus,
html.bc-purchase-flow--checkout select:focus,
html.bc-purchase-flow--checkout textarea:focus {
    border-color: var(--bc-flow-cyan) !important;
    box-shadow: 0 0 0 3px rgba(32, 189, 201, .13) !important;
}

html.bc-purchase-flow--checkout label,
html.bc-purchase-flow--checkout .control-label {
    color: #45617e !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

html.bc-purchase-flow--checkout .alert-warning,
html.bc-purchase-flow--checkout .checkout-security-msg {
    border-color: #f4d39e !important;
    background: var(--bc-flow-warning) !important;
    color: #8f5b15 !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary,
html.bc-purchase-flow--checkout #orderSummary.panel-summary,
html.bc-purchase-flow--checkout .main-sidebar .order-summary {
    overflow: hidden !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: var(--bc-flow-radius) !important;
    background:
        radial-gradient(circle at 100% 0, rgba(39, 170, 218, .24), transparent 34%),
        linear-gradient(160deg, var(--bc-flow-navy) 0%, var(--bc-flow-navy-dark) 100%) !important;
    box-shadow: var(--bc-flow-shadow) !important;
    color: #fff !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .panel-heading,
html.bc-purchase-flow--checkout .main-sidebar .panel-summary .panel-body,
html.bc-purchase-flow--checkout .main-sidebar .panel-summary .panel-footer {
    border: 0 !important;
    background: transparent !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .panel-heading {
    padding: 24px 24px 8px !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .panel-title {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .panel-body {
    padding: 16px 24px !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .panel-footer {
    padding: 18px 24px 24px !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .summary-list,
html.bc-purchase-flow--checkout .main-sidebar .panel-summary .list-item,
html.bc-purchase-flow--checkout .main-sidebar .panel-summary .price {
    border-color: rgba(255,255,255,.15) !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .list-item,
html.bc-purchase-flow--checkout .main-sidebar .panel-summary .item-name,
html.bc-purchase-flow--checkout .main-sidebar .panel-summary .item-value,
html.bc-purchase-flow--checkout .main-sidebar .panel-summary .price-total {
    color: rgba(255,255,255,.92) !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .faded,
html.bc-purchase-flow--checkout .main-sidebar .panel-summary small {
    color: rgba(255,255,255,.68) !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .price-amount {
    color: #2bd3d5 !important;
    font-size: clamp(32px, 3vw, 42px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .btn-checkout {
    min-height: 52px !important;
    margin-top: 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(90deg, #23c7d2, #20b8c6) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

html.bc-purchase-flow--checkout .main-sidebar .panel-summary .btn-checkout:hover,
html.bc-purchase-flow--checkout .main-sidebar .panel-summary .btn-checkout:focus {
    background: linear-gradient(90deg, #20b8c6, #119ba9) !important;
    color: #fff !important;
}

html.bc-purchase-flow--checkout .bc-flow-guarantee {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.8);
    font-size: 13px;
    line-height: 1.45;
}

html.bc-purchase-flow--checkout .bc-flow-guarantee svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

html.bc-purchase-flow--checkout .message.message-no-data {
    padding: 42px 28px !important;
    text-align: center;
}

html.bc-purchase-flow--checkout .message.message-no-data .message-title {
    color: var(--bc-flow-text) !important;
    font-size: 26px !important;
    font-weight: 800 !important;
}

html.bc-purchase-flow--checkout .bc-flow-empty-copy {
    max-width: 520px;
    margin: 10px auto 22px;
    color: var(--bc-flow-muted);
    font-size: 16px;
    line-height: 1.6;
}

html.bc-purchase-flow--checkout .bc-flow-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

html.bc-purchase-flow--checkout .bc-flow-empty-actions .btn {
    min-height: 48px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

/* ======================================================================
   Responsive
   ====================================================================== */

@media (max-width: 1100px) {
    html.bc-purchase-flow--configure body.page-configureproduct .main-grid,
    html.bc-purchase-flow--checkout body.page-viewcart .main-grid,
    html.bc-commerce-page.bc-purchase-flow--checkout body.page-order .main-grid {
        grid-template-columns: minmax(0, 1fr) 320px !important;
    }

    html.bc-purchase-flow--configure body.page-configureproduct .main-grid > .main-sidebar,
    html.bc-purchase-flow--checkout body.page-viewcart .main-grid > .main-sidebar,
    html.bc-commerce-page.bc-purchase-flow--checkout body.page-order .main-grid > .main-sidebar {
        max-width: 320px !important;
    }
}

@media (max-width: 991px) {
    html.bc-purchase-flow body.page-order .main-header > .container,
    html.bc-purchase-flow body.page-order .main-body > .container,
    html.bc-purchase-flow body.page-configureproduct .main-header > .container,
    html.bc-purchase-flow body.page-configureproduct .main-body > .container,
    html.bc-purchase-flow body.page-viewcart .main-header > .container,
    html.bc-purchase-flow body.page-viewcart .main-body > .container {
        width: min(calc(100% - 32px), 1320px) !important;
    }

    html.bc-purchase-flow--configure body.page-configureproduct .main-grid,
    html.bc-purchase-flow--configure body.page-order.page-configureproduct .main-grid,
    html.bc-purchase-flow--checkout body.page-viewcart .main-grid,
    html.bc-purchase-flow--checkout body.page-order.page-viewcart .main-grid,
    html.bc-commerce-page.bc-purchase-flow--checkout body.page-order .main-grid {
        display: block !important;
    }

    html.bc-purchase-flow--configure body.page-configureproduct .main-grid > .main-sidebar,
    html.bc-purchase-flow--configure body.page-order.page-configureproduct .main-grid > .main-sidebar,
    html.bc-purchase-flow--checkout body.page-viewcart .main-grid > .main-sidebar,
    html.bc-purchase-flow--checkout body.page-order.page-viewcart .main-grid > .main-sidebar,
    html.bc-commerce-page.bc-purchase-flow--checkout body.page-order .main-grid > .main-sidebar {
        display: none !important;
    }

    html.bc-purchase-flow--configure .order-summary-mob,
    html.bc-purchase-flow--checkout .order-summary-mob {
        position: fixed !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 999 !important;
        display: flex !important;
        width: 100% !important;
        min-height: 76px !important;
        align-items: center !important;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid var(--bc-flow-border) !important;
        background: rgba(255,255,255,.97) !important;
        box-shadow: 0 -12px 34px rgba(13, 53, 86, .12) !important;
        box-sizing: border-box !important;
        backdrop-filter: blur(12px);
    }

    html.bc-purchase-flow--configure .order-summary-mob .btn,
    html.bc-purchase-flow--checkout .order-summary-mob .btn {
        width: 100% !important;
        min-height: 52px !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: linear-gradient(90deg, #23c7d2, #20b8c6) !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 700 !important;
    }

    html.bc-purchase-flow--configure body.page-configureproduct,
    html.bc-purchase-flow--checkout body.page-viewcart {
        padding-bottom: calc(94px + env(safe-area-inset-bottom)) !important;
    }

    html.bc-purchase-flow--checkout .bc-flow-checkout-grid {
        grid-template-columns: 1fr !important;
    }

    html.bc-purchase-flow--checkout .bc-flow-checkout-grid > .bc-flow-half {
        grid-column: 1 !important;
    }
}

@media (max-width: 767px) {
    html.bc-purchase-flow body.page-order .app-main > .main-header,
    html.bc-purchase-flow body.page-configureproduct .app-main > .main-header,
    html.bc-purchase-flow body.page-viewcart .app-main > .main-header {
        padding: 32px 0 22px !important;
    }

    html.bc-purchase-flow body.page-order .main-header-title,
    html.bc-purchase-flow body.page-configureproduct .main-header-title,
    html.bc-purchase-flow body.page-viewcart .main-header-title {
        font-size: clamp(34px, 10vw, 44px) !important;
    }

    html.bc-purchase-flow .bc-flow-breadcrumbs {
        gap: 7px;
        font-size: 14px;
    }

    html.bc-purchase-flow--configure .product-config-info .panel-body {
        min-height: 0;
        padding: 22px !important;
    }

    html.bc-purchase-flow--configure .bc-flow-product-icon {
        position: static;
        width: 68px;
        height: 68px;
        margin-bottom: 18px;
    }

    html.bc-purchase-flow--configure .bc-flow-product-icon svg {
        width: 40px;
        height: 40px;
    }

    html.bc-purchase-flow--configure .product-config-info .product-info ul {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    html.bc-purchase-flow--configure #sectionCycles .panel-check-group {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    html.bc-purchase-flow--configure #sectionCycles .panel-check {
        min-height: 108px;
    }

    html.bc-purchase-flow--domain .bc-domain-choice-grid {
        padding: 18px 16px 16px !important;
    }

    html.bc-purchase-flow--domain .bc-domain-search-shell {
        padding: 22px 16px !important;
    }

    html.bc-purchase-flow--domain .bc-domain-search-shell .input-group,
    html.bc-purchase-flow--domain .bc-domain-search-shell [class*="input-group"] {
        display: block !important;
        background: transparent !important;
    }

    html.bc-purchase-flow--domain .bc-domain-search-input,
    html.bc-purchase-flow--domain .bc-domain-search-button {
        width: 100% !important;
        min-width: 0 !important;
    }

    html.bc-purchase-flow--domain .bc-domain-search-button {
        margin-top: 10px !important;
    }

    html.bc-purchase-flow--checkout .bc-flow-section > .section-body,
    html.bc-purchase-flow--checkout .bc-flow-section > .panel-body,
    html.bc-purchase-flow--checkout .bc-flow-section .section-body,
    html.bc-purchase-flow--checkout .bc-flow-section .panel-body {
        padding-inline: 16px !important;
    }

    html.bc-purchase-flow--checkout .message.message-no-data {
        padding: 32px 18px !important;
    }

    html.bc-purchase-flow--checkout .bc-flow-empty-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    html.bc-purchase-flow--checkout .bc-flow-empty-actions .btn {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    html.bc-purchase-flow body.page-order .main-header > .container,
    html.bc-purchase-flow body.page-order .main-body > .container,
    html.bc-purchase-flow body.page-configureproduct .main-header > .container,
    html.bc-purchase-flow body.page-configureproduct .main-body > .container,
    html.bc-purchase-flow body.page-viewcart .main-header > .container,
    html.bc-purchase-flow body.page-viewcart .main-body > .container {
        width: min(calc(100% - 24px), 1320px) !important;
    }

    html.bc-purchase-flow input,
    html.bc-purchase-flow select,
    html.bc-purchase-flow textarea,
    html.bc-purchase-flow button {
        font-size: 16px !important;
    }
}
