/* 'quote' button — pure-CSS refinements, tuned against ../Sample.png (loaded last) */

/* ---- cast shadow: a tight left/down AO ring on the element + a soft blob (::after) that runs down-left ---- */
.btn-quote {
  filter: drop-shadow(0 -2px .8px rgba(0,0,0,.05)) drop-shadow(-1.5px 1px .8px rgba(0,0,0,.25)) !important;
}
.btn-quote::after, .btn-quote:hover::after, .btn-quote:active::after {
  content: ""; display: block; position: absolute; z-index: -1; pointer-events: none;
  left: 3px; right: 6px; top: 8px; bottom: -3px; width: auto; height: auto;   /* stage x1313..1469, y40..90 */
  border-radius: 6px; clip-path: none; transform: none;
  background: rgba(0,0,0,.70);
  box-shadow: 0 14px 26px rgba(0,0,0,.2);
  filter: blur(2.5px);
}
.tex .btn-quote { filter: none !important; }
.tex .btn-quote::after { display: none; }

/* ---- chrome frame: TL/BL 45° chamfers, TR/BR rounded, per-side bevel profiles measured off the mockup ---- */
.btn-quote::before {
  clip-path: polygon(
    6px 0, calc(100% - 6px) 0, calc(100% - 4.2px) 2px, calc(100% - 2.5px) 4.5px, calc(100% - 1px) 6.5px, 100% 8.5px,
    100% calc(100% - 8px), calc(100% - .7px) calc(100% - 7px), calc(100% - 1.5px) calc(100% - 5.5px), calc(100% - 7px) 100%,
    6px 100%, 0 calc(100% - 6px), 0 8px, 1.5px 5px, 4px 2.5px);
  background:
    /* top: 2px bright band (starts right of the TL chamfer), then a mid row that varies left→center→right */
    linear-gradient(180deg, #f8f7f4 0 2px, rgba(0,0,0,0) 2px) 9px 0 / calc(100% - 9px) 2px no-repeat,
    linear-gradient(90deg, #767370 0, #66635f 30%, #78756f 50%, #6c6964 65%, #5a5853 100%) 10px 2px / calc(100% - 18px) 1px no-repeat,
    /* bottom 4 dark rows sit above the corner wedges (except the outer 8px of each corner) */
    linear-gradient(90deg, rgba(255,255,255,.12) 0, rgba(255,255,255,0) 20%, rgba(255,255,255,0) 82%, rgba(255,255,255,.14) 100%) 0 100% / 100% 4px no-repeat,
    linear-gradient(0deg, #181816 0 1px, #1e1e1c 1px 2px, #2e2d2a 2px 3px, #232321 3px 4px, rgba(0,0,0,0) 4px) 8px 100% / calc(100% - 16px) 4px no-repeat,
    /* outer 1px columns (lit rims) stay above the corner wedges */
    linear-gradient(90deg, #565450 0 1px, rgba(0,0,0,0) 1px) 0 0 / 1px 100% no-repeat,
    linear-gradient(90deg, #a29e97 0 1px, rgba(0,0,0,0) 1px) 100% 0 / 1px 100% no-repeat,
    /* TL chamfer wedge (per-diagonal tones measured: 100 77 90 120 | 180 130 40) */
    linear-gradient(135deg, rgba(0,0,0,0) 3.9px, #605e59 3.9px 4.6px, #656360 4.6px 5.3px, #4e4c48 5.3px 6px, #5b5954 6px 6.7px, #7a7771 6.7px 7.42px,
                    #b5b2ab 7.42px 8.13px, #82807a 8.13px 8.84px, #282826 8.84px 9.55px, rgba(0,0,0,0) 9.55px) 0 0 / 12px 7px no-repeat,
    /* TR: bright chrome blob, a mid-bright transition, then the face's dark outline */
    linear-gradient(225deg, #fbfaf8 0 6.7px, #adaaa3 6.7px 7.42px, #232321 7.42px 8.13px, rgba(0,0,0,0) 8.13px) 100% 0 / 12px 7px no-repeat,
    /* BR: the bottom bevel profile wrapped around the rounded corner (rim 105 | 25 30 38 50 | 100 | 75) */
    linear-gradient(315deg, #3c3b38 0 6px, #333230 6px 6.7px, #464541 6.7px 8.13px, #3c3b38 8.13px 8.84px, #5f5c57 8.84px 9.55px, #5a5853 9.55px 10.25px,
                    rgba(0,0,0,0) 10.25px) 100% 100% / 8px 9px no-repeat,
    /* BL: dark chamfer wedge (rim 90 60 35 | 18 25 25 25 | 65 115 75) */
    linear-gradient(45deg, #57554f 0 4.6px, #3d3c39 4.6px 5.3px, #252523 5.3px 6px, #121211 6px 6.7px, #191917 6.7px 8.84px,
                    #42403c 8.84px 9.55px, #75736d 9.55px 10.6px, #4c4a45 10.6px 11.3px, rgba(0,0,0,0) 11.3px) 0 100% / 12px 9px no-repeat,
    /* left strip: 86 49 39 70 | 174 130 14 */
    linear-gradient(90deg, #565450 0 1px, #31302d 1px 2px, #272725 2px 3px, #464540 3px 4px, #aeaba4 4px 5px, #82807a 5px 6px, #0e0e0d 6px 7px, rgba(0,0,0,0) 7px),
    /* right strip: 159 82 170 148 (outer→inner) */
    linear-gradient(270deg, #a29e97 0 1px, #545149 1px 2px, #aeaaa2 2px 3px, #98948d 3px 4px, rgba(0,0,0,0) 4px),
    /* bottom rows (top→bottom of the 6px strip): 65 | 100 | 35 45 30 24, lighter at both ends */
    linear-gradient(90deg, #55534e 0, #45433f 40%, #33322f 75%, #444240 100%) 0 calc(100% - 5px) / 100% 1px no-repeat,
    linear-gradient(90deg, #6e6b66 0, #807d77 12%, #66635e 35%, #66635e 80%, #56544f 100%) 0 calc(100% - 4px) / 100% 1px no-repeat,
    /* base under everything */
    linear-gradient(90deg, #4a4742 0%, #6c6963 30%, #b8b4ad 70%, #dedbd5 100%);
}

/* ---- black glossy face ---- */
.btn-quote span {
  clip-path: polygon(3.5px 0, calc(100% - 4.5px) 0, 100% 4.5px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 2px 100%, 0 calc(100% - 2px), 0 3.5px);
  background:
    radial-gradient(28px 22px at 48.5% 0, rgba(255,255,255,.13) 0, rgba(255,255,255,.05) 45%, rgba(255,255,255,0) 100%),   /* specular */
    radial-gradient(60% 9px at 30% 0, rgba(255,255,255,.02), rgba(255,255,255,0) 100%),
    linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, rgba(0,0,0,0) 1px),                                                       /* dark bottom edge row */
    linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.09) 100%),
    #1d1d1b;
  padding-top: 3px; padding-right: 1px;         /* text measured 1px high vs the mockup */
  text-shadow: 0 0 1px rgba(255,255,255,.6);    /* the mockup's glyphs are a touch softer/heavier */
}
.btn-quote span::after { border-radius: 0; }
.tex .btn-quote span { background: none; clip-path: none; }
/* keyboard focus ring (skin-top's box-shadow:none !important hides the base ring) */
.btn-quote:focus-visible { outline: 2px solid rgba(184,115,51,.6); outline-offset: 3px; }
