.ortho-orcamento-toggle { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; color: #fff; cursor: pointer; padding: 5px; font: inherit; }
.ortho-orcamento-count { background: #029fe3; border-radius: 20px; min-width: 20px; padding: 3px; text-align: center; font-size: 12px; }
.ortho-orcamento-action { padding: 12px 0; }
.ortho-orcamento-primary { display: flex; align-items: center; justify-content: center;  border: 0; border-radius: 4px; padding: 14px 20px; box-sizing: border-box; height: 56px; background: #482683; color: white; cursor: pointer; font: 600 15px/1.4 Poppins, sans-serif; }
.ortho-orcamento-primary:hover { background: #351a64; }
.ortho-orcamento { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(520px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; box-sizing: border-box; background: #fff; color: #292333; font: 14px/1.5 Poppins, sans-serif; overflow: hidden; }
.ortho-orcamento:not([open]) { display: none; }
.ortho-orcamento::backdrop { background: rgb(0 0 0 / 55%); }
html:has(.ortho-orcamento[open]) { overflow: hidden; }
.ortho-orcamento *, .ortho-orcamento *::before, .ortho-orcamento *::after { box-sizing: border-box; }
.ortho-orcamento-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0; padding: 20px 24px; border-bottom: 1px solid #eee8f4; flex-shrink: 0; }
.ortho-orcamento-heading h2 { font-size: 21px; font-weight: 600; color: #482683; }
.ortho-orcamento-heading button { border: 0; background: #f2eef7; color: #482683; border-radius: 8px; font-size: 28px; cursor: pointer; min-width: 44px; min-height: 44px; }
.ortho-orcamento-items { list-style: none; margin: 0 0 24px; padding: 0; }
.ortho-orcamento-items li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; }
.ortho-orcamento-items a { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; color: #482683; font-weight: 600; overflow-wrap: anywhere; }
.ortho-orcamento-items button { align-self: end; padding: 10px; background: transparent; border: 1px solid #d5cce2; border-radius: 6px; cursor: pointer; color: #482683; }
.ortho-orcamento fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ortho-orcamento legend { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.ortho-orcamento label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ortho-orcamento input, .ortho-orcamento select { width: 100%; height: 44px; border: 1px solid #bdb2cc; border-radius: 6px; background: #fff; color: #292333; padding: 8px 10px; font: inherit; font-size: 16px; }
.ortho-orcamento-items input { width: 95px; }
.ortho-orcamento-location { display: grid; grid-template-columns: 1fr 125px; gap: 12px; }
.ortho-orcamento-note { font-size: 12px; color: #62596c; margin: 10px 0 16px; }
.ortho-orcamento [data-orcamento-status] { margin-top: 16px; }
.ortho-orcamento fieldset:disabled { opacity: .6; }
.ortho-orcamento fieldset:disabled button { cursor: not-allowed; }
.ortho-orcamento :focus-visible, .ortho-orcamento-toggle:focus-visible, [data-orcamento-add]:focus-visible { outline: 3px solid #029fe3; outline-offset: 3px; }
@media (max-width: 400px) { .ortho-orcamento-scroll, .ortho-orcamento-heading, .ortho-orcamento-footer { padding: 18px; } .ortho-orcamento-location { grid-template-columns: 1fr 105px; } }

.ortho-orcamento[open] { display: flex; flex-direction: column; animation: ortho-cart-in .38s cubic-bezier(.22, 1, .36, 1) both; }
.ortho-orcamento[open]::backdrop { animation: ortho-backdrop-in .38s ease both; }
.ortho-orcamento[open].is-closing { animation: ortho-cart-out .32s cubic-bezier(.4, 0, .2, 1) both; pointer-events: none; }
.ortho-orcamento[open].is-closing::backdrop { animation: ortho-backdrop-out .32s ease both; }
.ortho-orcamento-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.ortho-orcamento-footer { flex-shrink: 0; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid #eee8f4; background: #fff; box-shadow: 0 -6px 24px rgb(72 38 131 / 4%); }
.ortho-orcamento-footer button { width: 100%; }
.ortho-orcamento-footer button:disabled { opacity: .5; cursor: not-allowed; }
.ortho-orcamento-thumbnail { width: 68px; height: 68px; flex-shrink: 0; object-fit: contain; border-radius: 10px; background: #faf8fc; }
.ortho-orcamento [hidden] { display: none !important; }
#ortho-orcamento-form { scroll-margin-top: 12px; }
@keyframes ortho-cart-in { from { transform: translateX(100%); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
@keyframes ortho-cart-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: .5; } }
@keyframes ortho-backdrop-in { from { background-color: rgb(0 0 0 / 0%); } to { background-color: rgb(0 0 0 / 55%); } }
@keyframes ortho-backdrop-out { from { background-color: rgb(0 0 0 / 55%); } to { background-color: rgb(0 0 0 / 0%); } }
@media (prefers-reduced-motion: reduce) { .ortho-orcamento[open], .ortho-orcamento[open]::backdrop { animation: none; } }

.ortho-orcamento-quantity-field { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 12px; color: #71647e; }
.ortho-orcamento-quantity-control { display: inline-flex; align-items: center; padding: 3px; border: 1px solid #e4dbed; border-radius: 12px; background: #faf8fc; }
.ortho-orcamento-quantity-control button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: #fff; color: #482683; font: 500 23px/1 Poppins, sans-serif; transition: background .2s, color .2s, box-shadow .2s; }
.ortho-orcamento-quantity-control button:hover:enabled { background: #482683; color: #fff; box-shadow: 0 3px 8px rgb(72 38 131 / 15%); }
.ortho-orcamento-quantity-control button:disabled { opacity: .35; cursor: default; }
.ortho-orcamento-quantity-control input { width: 58px; height: 36px; border: 0; background: transparent; text-align: center; padding: 0 3px; font-weight: 600; color: #482683; appearance: textfield; -moz-appearance: textfield; }
.ortho-orcamento-quantity-control input::-webkit-inner-spin-button, .ortho-orcamento-quantity-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ortho-orcamento-items .ortho-orcamento-remove { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: #f8f5fb; color: #89749c; transition: background .2s, color .2s; }
.ortho-orcamento-items .ortho-orcamento-remove:hover { background: #fff0f1; color: #bd3a52; }

.ortho-orcamento-items .ortho-orcamento-group { display: block; border: 0; padding: 18px 0 4px; }
.ortho-orcamento-group h3 { color: #482683; font-size: 16px; font-weight: 600; }
.ortho-orcamento-group p { color: #71647e; font-size: 12px; margin-top: 5px; }
.ortho-orcamento-item-notice { color: #8b5c16; font-size: 13px; }
.ortho-orcamento-add-control { margin: 0 6px 0 0; font-family: Poppins, sans-serif; }
.card-medida .ortho-orcamento-add-control { padding: 0 14px; }

.ortho-orcamento-add-control label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; margin-bottom: 10px; color: #482683; }
.ortho-orcamento-add-control input { width: 100px; height: 42px; border: 1px solid #d5cce2; border-radius: 9px; padding: 8px 12px; font: inherit; background: #fff; }
.ortho-orcamento-selection-note { font-size: 12px; line-height: 1.5; margin-top: 10px; color: #71647e; }
#itens { scroll-margin-top: 145px; }

.ortho-orcamento-add-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.ortho-orcamento-modal-quantity { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; color: #71647e; font-size: 12px; }
.ortho-orcamento-add-inline > .ortho-orcamento-primary { min-height: 44px; margin: 0; }
.ortho-orcamento-modal-quantity .ortho-orcamento-quantity-control input { width: 58px; height: 36px; border: 0; padding: 0 3px; text-align: center; background: transparent; font-weight: 600; color: #482683; }
.ortho-orcamento-hint { position: fixed; inset: auto; margin: 0; width: 300px; max-width: calc(100vw - 24px); padding: 18px; border: 1px solid #e8e0f0; border-radius: 14px; background: #fff; color: #482683; box-shadow: 0 10px 35px rgb(40 20 70 / 20%); font: 13px/1.6 Poppins, sans-serif; }
.ortho-orcamento-hint::backdrop { background: transparent; }
.ortho-orcamento-hint:popover-open { animation: ortho-hint-in .2s ease both; }
.ortho-orcamento-hint button { background: #f3eef9; color: #482683; border: 0; border-radius: 8px; padding: 10px 12px; margin-top: 12px; font: 600 12px/1.5 Poppins, sans-serif; cursor: pointer; width: 100%; }
.ortho-orcamento-hint button:hover { background: #e9def6; }
@keyframes ortho-hint-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ortho-orcamento-hint:popover-open { animation: none; } }

/* Cada produto contém sua própria lista de variações. */
.ortho-orcamento-items > .ortho-orcamento-product-group { display: block; margin: 0 0 22px; padding: 0; border-radius: 8px; background: #faf8fd; overflow: hidden; box-shadow: 0 3px 12px rgb(72 38 131 / 4%); }
.ortho-orcamento-product-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 4px; padding: 12px; background: #482683; color: #fff; }
.ortho-orcamento-product-eyebrow { color: #ded0f4; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 600; }
.ortho-orcamento-product-heading h3 { grid-column: 1 / -1; font-size: 19px; font-weight: 600; line-height: 1.4; color: #fff; overflow-wrap: anywhere; }
.ortho-orcamento-group-count { background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 20%); border-radius: 20px; padding: 3px 9px; font-size: 11px; color: #fff; white-space: nowrap; }
.ortho-orcamento-group-label { margin: 0; padding: 15px 18px 10px; color: #766286; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .045em; }
.ortho-orcamento-variations { list-style: none; padding: 0 14px 14px 22px; margin: 0; }
.ortho-orcamento-variations > .ortho-orcamento-variation { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 10px; margin: 0 0 10px; padding: 16px; background: #fff; border: 1px solid #e8e0ef; border-radius: 6px; }
.ortho-orcamento-variations > .ortho-orcamento-variation:last-child { margin-bottom: 0; }
.ortho-orcamento-variation > a { font-size: 12px; line-height: 1.6; font-weight: 500; }
.ortho-orcamento-variation .ortho-orcamento-thumbnail { width: 52px; height: 52px; }
.ortho-orcamento-variation .ortho-orcamento-quantity-field { font-size: 10px; }
@media (max-width: 400px) {
    .ortho-orcamento-product-heading { padding: 16px; }
    .ortho-orcamento-product-heading h3 { font-size: 17px; }
    .ortho-orcamento-variations { padding: 0 10px 12px 14px; }
    .ortho-orcamento-variations > .ortho-orcamento-variation { padding: 12px; }
    .ortho-orcamento-variation > a { gap: 10px; }
    .ortho-orcamento-variation .ortho-orcamento-thumbnail { width: 42px; height: 42px; }
}

@media (max-width: 768px) {

.ortho-orcamento-primary { width: 100%; height: 36px; font: 600 11.5px/1.4 Poppins, sans-serif; }

}

.ortho-orcamento-secundary { background: #482683; height: 34px; width: 142px; border: 0; border-radius: 100px; color: #fff; font-family: inherit; font-size: 14px; font-weight: 400; line-height: normal; padding: 0 12px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ortho-orcamento-secundary::before { content: ""; background: url(../img/carrinho-orcamento.svg) no-repeat center; background-size: contain; width: 16px; height: 16px; margin-right: 6px; flex-shrink: 0; }
.ortho-orcamento-secundary:hover { background: #029FE3; }
.ortho-orcamento-secundary:focus-visible { outline: 3px solid #029fe3; outline-offset: 3px; }
.card-medida .ortho-orcamento-add-control { display: flex; justify-content: center; padding: 0 12px; margin: 0 0 12px; }

.modal-content-product .ortho-orcamento-add-inline { align-items: center; gap: 12px; }
.modal-content-product .ortho-orcamento-quantity-control,
.modal-content-product .ortho-orcamento-add-inline > .ortho-orcamento-secundary { box-sizing: border-box; height: 44px; flex-shrink: 0; }
