/* USA Cabinets Cart Share 1.1.0: drawer row + send sheet.
 * Lives inside the header's cart drawer, so it uses the header's own tokens (Montserrat +
 * Nunito Sans, #d91f1f red, #343434 charcoal, square corners) and is scoped under #uh-root,
 * where the header's resets already apply. The row is the drawer's "helper block" (the tinted
 * "Still deciding?" block in the door menus), with the avatar pair people know from
 * Google Docs / Figma "share with someone". */

#uh-root .ucs-row {
	display: grid; grid-template-columns: 58px minmax(0, 1fr) 18px; align-items: center; gap: 12px;
	width: 100%; margin: 0 0 16px; padding: 14px 14px 14px 12px;
	background: #f6f7f9; border: 1px solid #e3e6eb; color: #222; text-align: left; cursor: pointer;
	font: inherit; text-transform: none; letter-spacing: 0; box-shadow: none;
	white-space: normal !important; height: auto !important; min-height: 0; line-height: 1.3; overflow: hidden; box-sizing: border-box; max-width: 100%;
	transition: border-color .15s, background-color .15s;
}
#uh-root .ucs-row:hover, #uh-root .ucs-row:focus-visible { background: #fff; border-color: #d91f1f; color: #222; }
#uh-root .ucs-row:focus-visible { outline: 2px solid #d91f1f; outline-offset: 2px; }
#uh-root .ucs-row__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; white-space: normal; }
#uh-root .ucs-row__t strong { white-space: normal; font: 700 15px/1.25 "Montserrat", Arial, sans-serif; color: #222; }
#uh-root .ucs-row__t span { white-space: normal; overflow-wrap: anywhere; font: 400 13px/1.4 "Nunito Sans", "Montserrat", Arial, sans-serif; color: #5f6873; }
#uh-root .ucs-chev { width: 18px; height: 18px; fill: none; stroke: #222; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
#uh-root .ucs-row:hover .ucs-chev { transform: translateX(3px); stroke: #d91f1f; }
#uh-root .ucs-avs { position: relative; display: block; width: 58px; height: 34px; }
#uh-root .ucs-av { position: absolute; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
#uh-root .ucs-av svg { width: 20px; height: 20px; fill: none; stroke-width: 1.9; stroke-linecap: round; }
#uh-root .ucs-av--me { left: 0; background: #343434; z-index: 1; }
#uh-root .ucs-av--me svg { stroke: #fff; }
#uh-root .ucs-av--them { left: 24px; background: #fff; border: 1.5px dashed #d91f1f; z-index: 2; box-shadow: 0 0 0 2px #f6f7f9; }
#uh-root .ucs-av--them svg { stroke: #d91f1f; width: 16px; height: 16px; stroke-width: 2.2; }
#uh-root .ucs-row:hover .ucs-av--them { box-shadow: 0 0 0 2px #fff; }

/* ---------------------------------------------------------------- the sheet (slides over the drawer) */
#uh-root .ucs-sheet {
	position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #fff;
	transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
#uh-root .ucs-sheet.is-in { transform: none; }
#uh-root .ucs-sheet[hidden], #uh-root .ucs-sheet [hidden] { display: none !important; }
#uh-root .ucs-head { display: flex; align-items: center; gap: 6px; min-height: 66px; padding: 10px 20px 10px 8px; border-bottom: 1px solid #e7e7e7; flex: none; }
#uh-root .ucs-back { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: #222; cursor: pointer; }
#uh-root .ucs-back:hover { color: #d91f1f; background: none; }
#uh-root .ucs-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#uh-root .ucs-title { margin: 0; font: 700 17px/1.2 "Montserrat", Arial, sans-serif; color: #222; }
#uh-root .ucs-body, #uh-root .ucs-done { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 28px; }
#uh-root .ucs-lede { margin: 0 0 20px; font: 400 14.5px/1.5 "Nunito Sans", Arial, sans-serif; color: #4b5563; }

#uh-root .ucs-f { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
#uh-root .ucs-l { display: block; margin: 0 0 7px; padding: 0; font: 600 13.5px/1.3 "Montserrat", Arial, sans-serif; color: #222; }
#uh-root .ucs-opt { font-weight: 500; color: #8a929c; }
#uh-root .ucs-in {
	display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px;
	background: #fff; border: 1px solid #c9cdd3; color: #111; box-shadow: none;
	font: 400 16px/1.3 "Nunito Sans", Arial, sans-serif; /* 16px: no iOS zoom on focus */
}
#uh-root .ucs-ta { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
#uh-root .ucs-in:focus { outline: 2px solid #d91f1f; outline-offset: -1px; border-color: #d91f1f; }
#uh-root .ucs-in.is-bad { border-color: #d91f1f; background: #fff7f7; }
#uh-root .ucs-in::placeholder { color: #9aa1aa; }

/* who it's for: square chips with a tick when chosen */
#uh-root .ucs-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#uh-root .ucs-chip { position: relative; display: block; margin: 0; cursor: pointer; }
#uh-root .ucs-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#uh-root .ucs-chip span {
	display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px;
	border: 1px solid #c9cdd3; background: #fff; font: 600 14px/1.2 "Montserrat", Arial, sans-serif; color: #333;
	transition: border-color .12s, background-color .12s, color .12s;
}
#uh-root .ucs-chip svg { width: 15px; height: 15px; flex: none; fill: none; stroke: #c9cdd3; stroke-width: 2; stroke-linecap: square; }
#uh-root .ucs-chip:hover span { border-color: #8a929c; }
#uh-root .ucs-chip input:checked + span { border-color: #d91f1f; box-shadow: inset 0 0 0 1px #d91f1f; background: #fff6f6; color: #a51616; }
#uh-root .ucs-chip input:checked + span svg { stroke: #d91f1f; }
#uh-root .ucs-chip input:focus-visible + span { outline: 2px solid #d91f1f; outline-offset: 2px; }


/* "From you": opens after their email is typed */
#uh-root .ucs-from { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.2, .7, .2, 1); }
#uh-root .ucs-from.is-open { grid-template-rows: 1fr; }
#uh-root .ucs-from__in { overflow: hidden; min-height: 0; }
#uh-root .ucs-from.is-open .ucs-from__in { padding: 16px 16px 2px; margin: 4px 0 16px; background: #f6f7f9; border-left: 3px solid #d91f1f; }
#uh-root .ucs-from__h { margin: 0; font: 700 15px/1.3 "Montserrat", Arial, sans-serif; color: #222; }
#uh-root .ucs-from__p { margin: 4px 0 14px; font: 400 13.5px/1.45 "Nunito Sans", Arial, sans-serif; color: #4b5563; }
#uh-root .ucs-two { display: grid; gap: 0; }

#uh-root .ucs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#uh-root .ucs-err { margin: 12px 0 0; padding: 10px 12px; background: #fff3f3; border-left: 3px solid #d91f1f; font: 600 13.5px/1.4 "Nunito Sans", Arial, sans-serif; color: #a51616; }

#uh-root .ucs-send,
#uh-root .ucs-send:hover,
#uh-root .ucs-send:focus,
#uh-root .ucs-send:active {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin: 0; padding: 0 16px;
	background: #d91f1f !important; color: #fff !important; border: 0 !important; box-shadow: none !important;
	font: 700 17px/1 "Montserrat", Arial, sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer;
}
#uh-root .ucs-send:hover { background: #b81818 !important; }
#uh-root .ucs-send:focus-visible { outline: 2px solid #222 !important; outline-offset: 2px; }
#uh-root .ucs-send.is-busy { cursor: progress; opacity: .85; }
#uh-root .ucs-send.is-busy::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: ucs-spin .7s linear infinite; }
#uh-root .ucs-send--navy, #uh-root .ucs-send--navy:hover, #uh-root .ucs-send--navy:focus, #uh-root .ucs-send--navy:active { background: #343434 !important; margin-top: 10px; }
@keyframes ucs-spin { to { transform: rotate(360deg); } }
#uh-root .ucs-fine { margin: 10px 0 0; text-align: center; font: 400 12.5px/1.4 "Nunito Sans", Arial, sans-serif; color: #7b838d; }

/* sent */
#uh-root .ucs-done { text-align: center; padding-top: 44px; }
#uh-root .ucs-done__mark { width: 64px; height: 64px; margin: 0 auto 18px; display: block; fill: none; stroke: #d91f1f; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#uh-root .ucs-done__mark circle { stroke: #e3e6eb; }
#uh-root .ucs-done__mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ucs-draw .5s .15s ease-out forwards; }
@keyframes ucs-draw { to { stroke-dashoffset: 0; } }
#uh-root .ucs-done__h { margin: 0; font: 700 22px/1.25 "Montserrat", Arial, sans-serif; color: #222; outline: none; }
#uh-root .ucs-done__p { margin: 10px auto 22px; max-width: 30ch; font: 400 15px/1.5 "Nunito Sans", Arial, sans-serif; color: #4b5563; }
#uh-root .ucs-done__p strong { color: #222; overflow-wrap: anywhere; }
#uh-root .ucs-done .ucs-send { margin-top: 6px; }
#uh-root .ucs-again, #uh-root .ucs-again:hover, #uh-root .ucs-again:focus { display: inline-block; margin: 18px 0 0; padding: 8px; background: none !important; border: 0 !important; color: #222 !important; font: 600 14.5px/1.3 "Montserrat", Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
	#uh-root .ucs-sheet, #uh-root .ucs-from, #uh-root .ucs-chev { transition: none; }
	#uh-root .ucs-done__mark path { animation: none; stroke-dashoffset: 0; }
}
