/* Photographic product media and synchronized, physical chat interactions. */
.product-photo{position:relative;overflow:hidden;border-radius:5px;background:#e4d7c0;isolation:isolate}
.product-photo>.product-art{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center;transform-origin:50% 55%}
.chat-bubble .product-photo>.product-art{height:auto;aspect-ratio:3/2}
.media-transfer{position:absolute;inset:0;display:grid;place-items:center;background:#071b1940;opacity:0;transition:opacity .28s;pointer-events:none}
.media-transfer>svg{position:absolute;width:35px;height:35px;transform:rotate(-90deg);fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;filter:drop-shadow(0 1px 3px #0007)}
.media-transfer circle{stroke-dasharray:101;stroke-dashoffset:calc(101 * (1 - var(--upload-progress,0)))}
.media-transfer>b{display:grid;place-items:center;width:35px;height:35px;color:#fff;font-size:17px;border:2px solid #ffffff35;border-radius:50%;font-weight:400}
[data-state=sending] .chat-bubble .media-transfer{opacity:1}
[data-state=sending] .chat-bubble .product-art{animation:productSettle 1.2s cubic-bezier(.2,.7,.2,1) both}
[data-state=done] [data-message-check]{color:#a7c1b7;letter-spacing:0;padding-right:1px;font-size:10px}
.chat-back{font-family:Arial,sans-serif;font-size:25px;line-height:1;color:#dce7e3;margin-right:-4px}
.chat-header{gap:6px}
.chat-header>div{min-width:0;flex:1}
.chat-header strong{white-space:nowrap;font-weight:600;letter-spacing:0;font-family:Arial,sans-serif}
.chat-header .floral-avatar{background:#d9cfb4 url('assets/florist-collection-real.jpg') 38% 46%/260% auto;color:transparent;flex-shrink:0;border:1px solid #ffffff19}
.doctor-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;flex-shrink:0;border:1px solid #9fe9df45;background:linear-gradient(145deg,#327d79,#153b49);color:#eafffb;font:600 11px/1 Arial,sans-serif;letter-spacing:.3px;box-shadow:inset 0 0 0 2px #ffffff0a}
.chat-call{width:16px;height:16px;fill:none;stroke:#d3dfda;stroke-width:1.6;stroke-linejoin:round;flex-shrink:0}
.chat-menu{margin-left:0;font-size:17px;color:#ccd5d1}
.send-phone .chat-body,.mirror-viewport .chat-body{background-color:#0d191c;background-image:radial-gradient(ellipse at 80% 0,#2b51422c,transparent 80%),repeating-linear-gradient(135deg,transparent 0 29px,#91b3a105 30px 31px,transparent 32px 58px)}
.chat-date{background:#202f34;border:1px solid #ffffff04;color:#a9b9b9;font-family:Arial,sans-serif;font-size:7px;letter-spacing:.3px}
.chat-bubble{border-radius:8px 0 8px 8px;background:#174c40;border:1px solid #42756829}
.send-phone .chat-bubble{background:#194d40}
.chat-bubble>p{font-family:Arial,sans-serif;font-size:10px;line-height:1.5;color:#e6efea;padding:7px 4px 2px;letter-spacing:0}
.message-meta{color:#a7c1b7;padding:1px 4px 2px}
.message-placeholder{inset:51px 10px auto;text-align:left;transition:opacity .25s,transform .4s;display:flex;align-items:center;flex-direction:column}
.attachment-preview{position:relative;border:1px solid #ffffff20;border-radius:7px;overflow:hidden;width:155px;box-shadow:0 4px 13px #0003;background:#1c2c2b}
.attachment-preview>.product-art{display:block;width:100%;height:85px;object-fit:cover;object-position:center 60%;opacity:.92}
.attachment-preview>span{display:block;font:7px/1.5 Arial,sans-serif;padding:5px 7px;color:#b5cec0}
.appointment-preview{display:flex;align-items:center;gap:10px;width:155px;min-height:85px;padding:12px;border:1px solid #78d9cf42;border-radius:7px;background:linear-gradient(145deg,#173b42,#102833);box-shadow:0 4px 13px #0003;text-align:left}
.appointment-preview>span{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#64d9c51a;border:1px solid #77dfcf50;color:#8defdc;font:600 13px/1 Arial,sans-serif}
.appointment-preview strong,.appointment-preview small{display:block;font-family:Arial,sans-serif}.appointment-preview strong{color:#effffb;font-size:9px}.appointment-preview small{color:#94bab7;font-size:7px;line-height:1.45;margin-top:4px}
.message-placeholder>p{font-size:9px;margin-top:10px;color:#cad5cf}
.message-placeholder>small{font-size:7px;color:#78938a;margin-top:3px}
[data-state=waiting] .attachment-preview{opacity:.5;filter:saturate(.7)}
[data-state=waiting] .appointment-preview{opacity:.5;filter:saturate(.7)}
[data-state=waiting] .message-placeholder>small{font-size:0}
[data-state=waiting] .message-placeholder>small:after{content:'Telefon sırasını bekliyor';font-size:7px}
[data-state=typing] .attachment-preview{animation:attachmentReady .5s ease both}
[data-state=typing] .appointment-preview{animation:attachmentReady .5s ease both}
[data-state=sending] .message-placeholder,[data-state=done] .message-placeholder{transform:translateY(-8px);pointer-events:none}
.chat-compose>.compose-text{background:#243438;border:1px solid #ffffff05;color:#e0e9e4;font-family:Arial,sans-serif;font-size:9px}
.keyboard-row>span{position:relative;font-family:Arial,sans-serif;box-shadow:0 1px 1px #0008;border-top:1px solid #ffffff08}
.keyboard-row>span.pressed:before{content:attr(data-key);position:absolute;bottom:15px;width:26px;height:28px;display:grid;place-items:center;border-radius:6px 6px 3px 3px;background:#718481;color:#fff;font-size:17px;box-shadow:0 3px 6px #0004;z-index:2}
.map-outgoing .product-photo>.product-art{height:125px;aspect-ratio:auto;object-position:center 57%}
.map-outgoing .product-photo{border-radius:5px}
.map-appointment-card,.appointment-card{position:relative;overflow:hidden;border:1px solid #79e1cf47;border-radius:6px;background:radial-gradient(circle at 90% 10%,#6ce6d52b,transparent 42%),linear-gradient(145deg,#173f43,#102a36);padding:14px;font-family:Arial,sans-serif}
.map-appointment-card{min-height:125px;padding:20px}.map-appointment-card>span,.appointment-card>span{display:block;color:#7ce8d9;font-size:8px;letter-spacing:1.25px}.map-appointment-card>strong,.appointment-card>strong{display:block;color:#f0fffb;font-size:18px;line-height:1.35;margin-top:12px}.map-appointment-card>small,.appointment-card>small{display:block;color:#a9ceca;font-size:9px;line-height:1.5;margin-top:5px}.appointment-card>strong{font-size:15px}.appointment-card{min-height:88px}.appointment-card .media-transfer{font-style:normal}
.branch-controls{display:flex;align-items:center;gap:8px;margin:-10px 0 23px;padding:10px 12px;border:1px solid #70d9d02b;border-radius:9px;background:#10233a;color:#b9d2e4}.branch-controls[hidden]{display:none}.branch-controls>span{font-size:10px;letter-spacing:1px;color:#7ce8dc;margin-right:4px}.branch-controls button{padding:7px 11px;border:1px solid #8fc9ec32;border-radius:999px;background:#ffffff05;color:#b8cce0;font:500 11px/1 Arial,sans-serif}.branch-controls button.active{border-color:#67e7d263;background:#65e5d412;color:#8bf3e2}
.discovery-stage[data-map-step='4'] .map-outgoing .product-art{animation:productSettle 1.2s ease both}
.story-panels .product-photo>.product-art{height:130px;aspect-ratio:auto;object-position:center 57%}
.story-panels[data-phase='1'] .product-photo>.product-art{animation:productSettle 1.2s ease both}
.mirror-viewport .chat-header{gap:5px}.mirror-viewport .chat-header strong{font-size:10px}
@keyframes productSettle{from{transform:scale(1.045);filter:brightness(.92)}to{transform:scale(1);filter:brightness(1)}}
@keyframes attachmentReady{from{transform:translateY(8px);opacity:.4}to{transform:translateY(0);opacity:1}}
.paused .product-photo *, .paused .attachment-preview{animation-play-state:paused!important}
@media(max-width:860px) and (min-width:601px){.chat-call{display:none}.chat-header .floral-avatar{width:22px;height:22px}.chat-back{font-size:21px}.chat-bubble>p{font-size:8px}.attachment-preview{width:130px}.attachment-preview>.product-art{height:75px}}
@media(max-width:600px){.chat-bubble>p{font-size:10px}.send-phone .chat-header strong{font-size:10px}.chat-call{width:15px}.doctor-avatar{width:30px;height:30px;font-size:9px}.story-panels .product-photo>.product-art{height:145px}.map-outgoing .product-photo>.product-art{height:125px}.branch-controls{overflow-x:auto;align-items:center}.branch-controls>span{position:sticky;left:0;background:#10233a}.branch-controls button{white-space:nowrap}.appointment-card>strong{font-size:13px}.doctor-phone .chat-bubble>p{font-size:9px;line-height:1.45}}
@media(prefers-reduced-motion:reduce){.product-photo *,.attachment-preview,.media-transfer{animation:none!important;transition:none!important}}
[data-state=typing] .message-placeholder>p,[data-state=typing] .message-placeholder>small{visibility:hidden}
[data-state=typing] .attachment-preview>.product-art{animation:productSettle 3s ease both}
