/* Isolated basket styles: safe inside public pages and admin panels. */
.uc-shell { container-type:inline-size; text-align:left; width:100%; min-width:0; color:var(--fg,#29394b); }
.uc-shell *, .uc-shell *::before, .uc-shell *::after { box-sizing:border-box; min-width:0; }
.uc-shell aside { position:static; height:auto; width:auto; border:1px solid var(--line,#dee5ed); padding:18px; overflow:visible; }
.uc-shell h2, .uc-shell h3, .uc-mode legend { color:var(--title,inherit); }
.uc-shell h2 { font-size:clamp(1.5rem,4vw,2rem); margin:6px 0 10px; }
.uc-shell h3 { font-size:1rem; margin:0 0 8px; overflow-wrap:anywhere; }
.uc-shell p { margin:8px 0; overflow-wrap:anywhere; }
.uc-header { display:block; padding:0 0 12px; }
.uc-kicker { display:block; color:var(--muted,#697b90); font-size:.75rem; font-weight:650; margin:0 0 5px; }
.uc-help { color:var(--muted,#697b90); font-size:.88rem; line-height:1.55; }
.uc-header h2 { margin:0 0 4px; }
.uc-header .uc-help { margin:2px 0 0; line-height:1.45; }
.uc-header .uc-help + .uc-help { margin-top:2px; }
.uc-steps { display:flex; flex-wrap:wrap; padding:0; margin:10px 0 18px; gap:8px; }
.uc-steps li { list-style:none; border:1px solid var(--line,#d5dfea); padding:6px 10px; border-radius:20px; font-size:.8rem; color:var(--muted,#697b90); }
.uc-steps li.uc-current { color:var(--on-accent,#fff); background:var(--accent,var(--brand,#526b86)); border-color:transparent; }
.uc-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; align-items:start; }
.uc-main { display:grid; gap:16px; }
.uc-summary { display:block; border-radius:12px; background:var(--card2,#f6f8fa); }
.uc-summary-line { display:flex; justify-content:space-between; gap:12px; margin:10px 0; font-size:.9rem; }
.uc-summary-line span { overflow-wrap:anywhere; }
.uc-summary-line b { flex-shrink:0; }
.uc-total { border-top:1px solid var(--line,#d5dfea); padding-top:12px; }
.uc-catalog { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.uc-catalog>p { grid-column:1 / -1; }
.uc-catalog-card { display:flex; flex-direction:column; align-items:stretch; justify-content:space-between; gap:12px; border:1px solid var(--line,#d5dfea); border-radius:12px; padding:14px; background:var(--card,#fff); }
.uc-catalog-card img { width:100%; height:auto; aspect-ratio:5/2; object-fit:cover; border-radius:8px; }
.uc-catalog-card .uc-quantity { justify-content:space-between; flex-wrap:nowrap; }
@container (max-width:700px) { .uc-catalog { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@container (max-width:440px) { .uc-catalog { grid-template-columns:minmax(0,1fr); } }
.uc-item-copy { flex:1 1 auto; }
.uc-catalog-card p { margin:4px 0; }
.uc-button, .uc-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; max-width:100%; border:1px solid var(--line,#d5dfea); border-radius:9px; padding:10px 15px; background:var(--card2,#e8edf4); color:var(--fg,#34485e); font:inherit; cursor:pointer; white-space:normal; overflow-wrap:anywhere; text-decoration:none; }
.uc-button:focus-visible,.uc-link:focus-visible { outline:2px solid var(--accent,#2563eb); outline-offset:2px; }
.uc-button:disabled { opacity:.5; cursor:default; }
.uc-button.uc-primary { background:var(--accent,var(--brand,#526b86)); color:var(--btn-on,var(--on-accent,#fff)); border-color:transparent; }
.uc-quantity { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.uc-quantity span { min-width:22px; text-align:center; }
.uc-quantity .uc-button { min-width:44px; padding:8px; }
.uc-mode { border:1px solid var(--line,#d5dfea); padding:14px; border-radius:12px; margin:0; }
.uc-mode legend { font-weight:650; padding:0 6px; }
.uc-choice { display:flex; align-items:flex-start; gap:10px; margin:12px 0; cursor:pointer; }
.uc-choice input[type=radio] { flex:0 0 20px; width:20px; height:20px; min-height:20px; margin:3px 0 0; }
.uc-choice small { display:block; color:var(--muted,#697b90); margin-top:4px; line-height:1.5; }
.uc-field { display:grid; gap:6px; margin:0; font-size:.9rem; }
.uc-field input,.uc-field select { display:block; width:100%; max-width:100%; min-width:0; min-height:44px; border:1px solid var(--line,#d5dfea); border-radius:8px; padding:10px; color:var(--fg,#29394b); background:var(--card,#fff); font:inherit; font-size:16px; }
.uc-fields { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); }
.uc-schedule { display:grid; gap:10px; border:1px solid var(--line,#d5dfea); border-radius:12px; padding:16px; background:var(--card,#fff); }
.uc-slots { display:flex; flex-wrap:wrap; gap:8px; }
.uc-slots .uc-button { flex:0 1 75px; }
.uc-actions { display:flex; flex-wrap:wrap; gap:10px; }
.uc-actions .uc-button { flex:1 1 150px; }
.uc-error { color:#b42318; background:#fff1f0; border-radius:8px; padding:12px; line-height:1.5; }
.uc-error[hidden],.uc-verification[hidden] { display:none; }
.uc-verification { display:grid; gap:12px; }
.uc-lines { margin:0; padding:0; display:grid; gap:10px; }
.uc-lines li { display:flex; justify-content:space-between; gap:12px; list-style:none; }
.uc-lines li span { overflow-wrap:anywhere; }
.uc-lines li b { flex-shrink:0; }
.uc-complete { display:grid; gap:14px; }
.uc-booked-items { border:1px solid var(--line,#d5dfea); border-radius:9px; padding:12px; margin:12px 0; }
.uc-booked-items ul { padding-left:20px; margin:0; }
.uc-booked-items li { margin:5px 0; overflow-wrap:anywhere; }
@media(min-width:1000px) { .uc-layout { grid-template-columns:minmax(0,1fr) minmax(220px,.45fr); } .uc-layout.uc-single { grid-template-columns:minmax(0,1fr); } }
@media(max-width:480px) { .uc-catalog-card { padding:12px; } .uc-steps { gap:5px; } .uc-steps li { font-size:.72rem; padding:5px 8px; } .uc-schedule { padding:12px; } }

.uc input[type=radio],.uc input[type=checkbox],[class^=uc-] input[type=radio],[class^=uc-] input[type=checkbox]{accent-color:var(--accent,#2563eb)}

/* Selector de fecha propio (semana de domingo a sábado). */
.ua-date { cursor: pointer; background-image: none; }
.ua-datepop { position: fixed; z-index: 2147483000; width: 280px; max-width: calc(100vw - 12px); box-sizing: border-box; padding: 12px; background: #fff; color: #1f2937; border: 1px solid #d5dbe5; border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.18); font-size: 14px; }
.ua-datepop .dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; text-transform: capitalize; }
.ua-datepop .dp-head button { width: 34px; height: 34px; min-width: 0; padding: 0; border: 0; border-radius: 8px; background: #eef1f6; color: inherit; font-size: 18px; cursor: pointer; }
.ua-datepop .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.ua-datepop .dp-grid i { font-style: normal; font-weight: 700; padding: 4px 0; color: #667085; }
.ua-datepop .dp-grid button { height: 34px; min-width: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.ua-datepop .dp-grid button:hover:not(:disabled) { background: #eef1f6; }
.ua-datepop .dp-grid button.now { box-shadow: inset 0 0 0 1px #7686a8; }
.ua-datepop .dp-grid button.sel { background: #3e5489; color: #fff; font-weight: 700; }
.ua-datepop .dp-grid button:disabled { color: #b8c0cc; cursor: not-allowed; }
.ua-datepop .dp-foot { display: flex; justify-content: space-between; margin-top: 8px; }
.ua-datepop .dp-foot button { border: 0; background: transparent; color: #3e5489; font-weight: 600; cursor: pointer; padding: 6px 8px; min-width: 0; }
.ua-datepop .dp-foot button:disabled { color: #b8c0cc; cursor: not-allowed; }

/* Fecha y hora en una sola línea; el profesional en la siguiente. */
.uc-fields.uc-row2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.uc-schedule .uc-fields + .uc-fields { margin-top:12px; }

.uc-catalog>.uc-section { grid-column:1 / -1; margin:10px 0 0; font-size:1.05rem; }
.uc-catalog>.uc-section:first-child { margin-top:0; }
.uc-gift { display:grid; gap:10px; border:1px dashed var(--line,#d5dfea); border-radius:12px; padding:16px; background:var(--card,#fff); }
.uc-gift input { text-transform:uppercase; letter-spacing:.08em; }

/* Elegir profesional (foto en círculo) */
.uc-pros { display:flex; flex-wrap:wrap; gap:14px; margin:4px 0 6px; }
.uc-pro { display:flex; flex-direction:column; align-items:center; gap:6px; width:92px; padding:6px 4px; border:0; background:none; color:inherit; font:inherit; cursor:pointer; border-radius:12px; }
.uc-pro-photo { width:68px; height:68px; border-radius:50%; object-fit:cover; border:3px solid transparent; box-shadow:0 0 0 1px var(--line,#d5dfea); background:var(--line,#e8edf3); }
.uc-pro-initial { display:grid; place-items:center; font-size:1.5rem; font-weight:700; }
.uc-pro-name { font-size:.85rem; line-height:1.2; text-align:center; overflow-wrap:anywhere; }
.uc-pro-on .uc-pro-photo { border-color:var(--accent,#0f6b5c); box-shadow:0 0 0 2px var(--accent,#0f6b5c); }
.uc-pro-on .uc-pro-name { font-weight:700; }
.uc-pro:focus-visible { outline:2px solid var(--accent,#0f6b5c); outline-offset:2px; }
.uc-pro-hint { margin:0 0 8px; }
.uc-button:disabled { opacity:.45; cursor:not-allowed; }
.uc-pro-fixed { display:flex; align-items:center; gap:12px; margin-top:4px; grid-column:1/-1; }
.uc-pro-fixed .uc-pro-photo { width:52px; height:52px; flex:none; }
.uc-pro-fixed span:last-child { display:flex; flex-direction:column; }
.uc-pro-wrap { position:relative; }
.uc-pro-wa { position:absolute; top:2px; right:6px; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; background:#25d366; color:#fff; box-shadow:0 0 0 2px var(--card,#fff); }
.uc-pro-wa:focus-visible { outline:2px solid var(--accent,#0f6b5c); outline-offset:2px; }

/* Selectores siempre con texto negro sobre fondo blanco en cualquier tema. */
.uc-field select,.uc-cart select{background-color:#fff;color:#111;color-scheme:light}
.uc-field select option,.uc-cart select option{background:#fff;color:#111}

.uc-field textarea { display:block; width:100%; max-width:100%; min-height:84px; box-sizing:border-box; border:1px solid var(--line,#d5dfea); border-radius:8px; padding:10px; font:inherit; color:var(--fg,#29384b); background:transparent; resize:vertical; }
.uc-field input[type=file] { padding:8px; min-height:44px; }
.uc-consent { display:flex; gap:10px; align-items:flex-start; margin:14px 0 4px; font-size:.86rem; line-height:1.45; color:var(--muted,#697b90); cursor:pointer; }
.uc-consent input { flex:none; width:20px; height:20px; min-height:0; margin:1px 0 0; accent-color:var(--accent,#2F6F5E); }
.uc-consent a { color:var(--accent,#2F6F5E); text-decoration:underline; }

/* Descripciones largas: 3 líneas con "Ver más" que abre el texto completo. */
.uc-clamp { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; white-space:pre-line; overflow-wrap:anywhere; }
.uc-more { all:unset; box-sizing:border-box; cursor:pointer; color:var(--brand,#526b86); font-weight:700; font-size:.88rem; text-decoration:underline; padding:4px 0; }
.uc-more:focus-visible { outline:2px solid var(--brand,#526b86); outline-offset:2px; border-radius:4px; }
dialog.uc-desc-dialog { position:fixed; max-width:min(520px,92vw); width:100%; max-height:90vh; overflow:auto; border:1px solid var(--line,#d5dfea); border-radius:14px; padding:16px 20px 20px; background:var(--card,#fff); color:var(--fg,#29394b); }
dialog.uc-desc-dialog::backdrop { background:rgba(0,0,0,.55); }
.uc-desc-full { white-space:pre-line; overflow-wrap:anywhere; line-height:1.55; max-height:60vh; overflow:auto; }
.uc-desc-x { position:absolute; top:8px; right:8px; z-index:1; width:36px; height:36px; border-radius:50%; border:0; cursor:pointer; background:rgba(0,0,0,.55); color:#fff; font-size:24px; line-height:1; display:grid; place-items:center; padding:0; }
.uc-desc-photo { display:block; width:100%; height:auto; aspect-ratio:5/2; object-fit:cover; border-radius:10px; margin:0 0 12px; }
.uc-desc-price { font-weight:700; margin:8px 0 14px; }
dialog.uc-desc-dialog .uc-button { width:100%; }
.uc-desc-full { max-height:none; }
dialog.uc-desc-dialog h3 { margin:4px 0 6px; padding-right:40px; }
dialog.uc-desc-dialog { inset:0; margin:auto; height:fit-content; }
dialog.uc-desc-dialog { box-sizing:border-box; width:min(520px,92vw); max-width:none; }
.uc-photo-open { cursor:pointer; }
.uc-photo-open:focus-visible { outline:2px solid var(--brand,#526b86); outline-offset:2px; }
.uc-more[hidden] { display:none; }
