.quote-cart-page { background: #f6f5f9; }
.quote-cart-page :is(button, input, select, textarea), .quote-service-dialog { font-family: inherit; }
.quote-cart-page .hero { padding: 30px 0 32px; border-bottom: 1px solid #eeebf4; }
.quote-cart-page .hero h1 { margin: 10px 0 0; max-width: none; font-size: clamp(1.8rem, 3.2vw, 2.65rem); font-weight: 800; line-height: 1.45; }
.quote-cart-page .hero p { max-width: 720px; margin: 8px 0 0; font-size: .92rem; line-height: 1.85; }
.quote-cart-page .section { padding-top: 28px; }
.quote-cart-page .quote-cart-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.quote-cart-page .quote-cart-items { gap: 12px; min-width: 0; }
.quote-items-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 3px 4px; }
.quote-items-heading h2 { margin: 0; color: #33284f; font-size: 1.02rem; font-weight: 800; }
.quote-items-heading span { color: #80768c; font-size: .78rem; }
.quote-cart-page .quote-cart-item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; padding: 20px; border: 1px solid #e4deed; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px #39265d04; }
.quote-cart-page .quote-cart-item h2 { margin: 2px 0 6px; color: #342852; font-size: 1.03rem; font-weight: 800; line-height: 1.6; }
.quote-cart-page .quote-item-content { min-width: 0; }
.quote-cart-page .quote-item-content p { margin: 0 0 6px; font-size: .84rem; }
.quote-cart-page .quote-item-content .quote-item-parent { margin: 0 0 2px; color: #81748f; font-size: .76rem; font-weight: 600; }
.quote-service-symbol { display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; border: 1px solid #e7e0f4; border-radius: 16px; background: linear-gradient(145deg, #f8f6fe, #eee8f9); color: var(--primary-blue); overflow: hidden; }
.quote-service-symbol svg { width: 32px; height: 32px; }
.quote-cart-page .quote-service-symbol img { display: block; width: 100%; height: 100%; max-height: none; aspect-ratio: 1; object-fit: contain; border-radius: inherit; background: transparent; }
.quote-cart-page .quote-cart-item > img, .quote-cart-page .quote-cart-placeholder { width: 64px; height: 80px; max-height: none; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 10px; background: #f8f6fb; }
.quote-cart-page .quote-item-details { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; color: var(--primary-blue); font-family: inherit; font-size: .82rem; font-weight: 700; text-decoration: none; }
.quote-cart-page .quote-item-details:hover { text-decoration: underline; text-underline-offset: 4px; }
.quote-item-details svg { width: 17px; height: 17px; }
.quote-cart-page .quote-item-content .quote-item-unavailable { color: #956416; font-size: .8rem; }
.quote-item-remove-form { margin: 0; align-self: center; }
.quote-item-remove { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 10px; border: 1px solid #ece6ee; border-radius: 9px; background: #fff; color: #89768b; font: inherit; font-size: .79rem; font-weight: 700; cursor: pointer; }
.quote-item-remove svg { width: 17px; height: 17px; }
.quote-item-remove:hover { color: #a63750; border-color: #eecbd4; background: #fff6f8; }
.quote-cart-page button:disabled { opacity: .5; cursor: not-allowed; }
.quote-cart-page .quote-cart-summary { position: sticky; top: 96px; gap: 16px; padding: 22px; border: 1px solid #e4deed; border-radius: 18px; background: #fff; box-shadow: 0 12px 36px #39265d08; }
.quote-cart-summary-head { display: grid; justify-items: start; gap: 10px; }
.quote-cart-summary-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 8px; color: var(--primary-blue); background: #f2eefb; font-size: .73rem; font-weight: 800; }
.quote-cart-summary-head h2 { margin: 0; font-size: 1.14rem; font-weight: 800; color: #342852; }
.quote-cart-summary-count { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #eee7f6; border-radius: 12px; background: #faf8fe; }
.quote-cart-summary-count strong { color: var(--primary-blue); font-size: 1.85rem; font-weight: 800; line-height: 1.2; }
.quote-cart-summary-count span { color: #81748f; font-size: .8rem; line-height: 1.8; }
.quote-cart-breakdown { display: grid; gap: 8px; margin: 0; padding: 0 2px 14px; border-bottom: 1px solid #f0ebf5; font-size: .82rem; }
.quote-cart-breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.quote-cart-breakdown dt { color: #81748f; }
.quote-cart-breakdown dd { margin: 0; color: #342852; font-weight: 800; }
.quote-cart-summary .button, .quote-cart-summary form { width: 100%; }
.quote-cart-page .quote-cart-summary .button { justify-content: center; min-height: 44px; padding: 9px 12px; font-size: .85rem; font-weight: 700; }
.quote-cart-clear { width: 100%; min-height: 34px; padding: 4px; border: 0; background: transparent; color: #947483; font: inherit; font-size: .77rem; font-weight: 600; cursor: pointer; }
.quote-cart-clear:hover { color: #a63750; text-decoration: underline; }
.quote-cart-guard-card { display: grid; gap: 14px; margin-bottom: 18px; padding: 18px; border: 1px solid #e9dfb2; border-radius: 16px; background: #fffcef; }
.quote-cart-guard-card strong { color: var(--primary-blue); }
.quote-cart-guard-card p { margin: 8px 0 0; color: #81748f; line-height: 1.8; }
.quote-cart-guard-actions, .quote-cart-actions { display: flex; flex-wrap: wrap; gap: 10px; }
html.quote-service-modal-open { overflow: hidden; }
.quote-service-dialog { width: min(620px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid #e8e0f2; border-radius: 22px; background: #fff; color: #342852; box-shadow: 0 28px 90px #21133540; overflow: hidden; }
.quote-service-dialog[open] { display: flex; flex-direction: column; }
.quote-service-dialog::backdrop { background: #20143266; backdrop-filter: blur(4px); }
.quote-preview-close { position: absolute; inset-inline-end: 16px; top: 16px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e6dff0; border-radius: 10px; background: #fff; color: #6d5e83; cursor: pointer; }
.quote-preview-close:hover { color: #352352; background: #f4f0fa; }
.quote-preview-close svg { width: 18px; height: 18px; }
.quote-preview-content { display: flex; flex-direction: column; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.quote-preview-head { display: flex; align-items: center; gap: 16px; padding: 28px; padding-inline-end: 65px; border-bottom: 1px solid #eee8f4; background: linear-gradient(110deg, #fff, #faf7ff); }
.quote-preview-head h2 { margin: 4px 0 0; font-size: 1.3rem; font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
.quote-preview-parent { color: #897a97; font-size: .8rem; font-weight: 600; }
.quote-preview-body { display: grid; gap: 26px; padding: 26px 28px; }
.quote-preview-body h3 { margin: 0 0 12px; font-size: .97rem; font-weight: 800; color: #453065; }
.quote-preview-description { color: #756881; font-size: .91rem; line-height: 2; white-space: pre-line; overflow-wrap: anywhere; }
.quote-preview-features { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.quote-preview-features li { position: relative; padding-inline-start: 20px; color: #756881; font-size: .86rem; line-height: 1.8; }
.quote-preview-features li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: #a18cc8; }
.quote-preview-faq { margin-top: 8px; border: 1px solid #ece5f4; border-radius: 10px; padding: 12px 14px; font-size: .85rem; }
.quote-preview-faq summary { color: #56416f; font-weight: 700; cursor: pointer; }
.quote-preview-faq p { color: #756881; line-height: 1.9; margin: 12px 0 0; white-space: pre-line; }
.quote-preview-footer { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 28px; background: #fff; border-top: 1px solid #eee8f4; }
.quote-preview-footer .button { border: 0; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.quote-preview-footer a { display: inline-flex; align-items: center; gap: 12px; color: var(--primary-blue); font-size: .8rem; font-weight: 700; text-decoration: none; }
.quote-cart-page :is(a, button):focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 3px; }
@media (max-width: 980px) {
    .quote-cart-page .quote-cart-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .quote-cart-page .quote-cart-summary { position: static; }
}
@media (max-width: 600px) {
    .quote-cart-page .hero { padding: 24px 0; }
    .quote-cart-page .hero h1 { font-size: 1.7rem; }
    .quote-cart-page .hero p { font-size: .85rem; }
    .quote-cart-page .quote-cart-item { grid-template-columns: 48px minmax(0, 1fr) 36px; padding: 14px; gap: 12px; }
    .quote-cart-page .quote-cart-item h2 { font-size: .93rem; }
    .quote-cart-page .quote-service-symbol { width: 48px; height: 48px; border-radius: 12px; }
    .quote-service-symbol svg { width: 27px; height: 27px; }
    .quote-cart-page .quote-cart-item > img, .quote-cart-page .quote-cart-placeholder { width: 48px; height: 60px; }
    .quote-cart-page .quote-item-content .quote-item-parent { font-size: .7rem; }
    .quote-cart-page .quote-item-details { font-size: .76rem; }
    .quote-item-remove { width: 36px; min-height: 36px; padding: 8px; }
    .quote-item-remove span { display: none; }
    .quote-items-heading span { font-size: .7rem; }
    .quote-cart-page .quote-cart-summary { padding: 18px; }
    .quote-service-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
    .quote-preview-head { padding: 24px 18px; padding-inline-end: 58px; gap: 12px; }
    .quote-preview-head h2 { font-size: 1.08rem; }
    .quote-preview-parent { font-size: .73rem; }
    .quote-preview-body { padding: 22px 18px; }
    .quote-preview-description { font-size: .85rem; }
    .quote-preview-footer { padding: 16px 18px; }
}
