/* Canlı Destek — mrking5021.com Comm100 penceresi birebir */

.mk-ls[hidden] {
  display: none !important;
}

.mk-ls {
  position: fixed;
  inset: 0;
  z-index: 2147483641;
  pointer-events: none;
  font-family: Arial, Helvetica, "Titillium Web", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.mk-ls-open,
body.mk-side-open {
  overflow: hidden !important;
}

.mk-ls__window {
  pointer-events: auto;
  position: fixed;
  right: 0;
  bottom: 0;
  width: 412px;
  height: 712px;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

@media (max-width: 1023px) {
  .mk-ls__window {
    inset: 0;
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
}

/* ---------- Brand chrome (prechat + sohbet aynı) ---------- */
.mk-ls__chrome,
.mk-ls__chrome--brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 78px;
  height: 78px;
  background: #001529 !important;
  border-bottom: 0;
  padding: 0 6px 0 8px;
  gap: 4px;
}

.mk-ls__chatbrand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.mk-ls__crest {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.mk-ls__chatbrand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-top: 2px;
}

.mk-ls__chatmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1;
  color: #f0c43a !important;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.mk-ls__chatslogan {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: #fff !important;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.mk-ls__ops,
.mk-ls__ops--brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 2px 0 0;
  background: transparent !important;
  align-self: flex-start;
  margin-top: 8px;
}

.mk-ls__iconbtn {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #e8e8e8;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  font-weight: 700;
}

.mk-ls__iconbtn--light,
.mk-ls__iconbtn--light:hover {
  color: #e8e8e8;
}

.mk-ls__iconbtn--light:hover {
  color: #fff;
}

/* ---------- Body / pattern ---------- */
.mk-ls__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #f0f2f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='28' viewBox='0 0 32 28'%3E%3Cpath fill='%23cfd5de' fill-opacity='0.45' d='M16 0l16 28H0z'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.85' d='M16 3l13 23H3z'/%3E%3C/svg%3E");
  background-size: 32px 28px;
  display: flex;
  flex-direction: column;
}

.mk-ls__prechat {
  padding: 12px 10px 16px;
}

.mk-ls__greeting {
  margin-bottom: 12px;
}

.mk-ls__formbox {
  max-width: 500px;
  margin: 0 auto;
  padding: 14px 14px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.mk-ls__req {
  margin: 0 0 12px;
  font-size: 12px;
  color: #888;
}

.mk-ls__row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}

.mk-ls__label {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.mk-ls__star {
  color: #c62828;
  font-style: normal;
  font-size: 10px;
  vertical-align: super;
}

/* iOS zoom önleme: input/select en az 16px */
.mk-ls__row input,
.mk-ls__row select,
.mk-ls input,
.mk-ls select,
.mk-ls textarea {
  font-size: 16px !important;
  line-height: 1.25;
}

.mk-ls__row input,
.mk-ls__row select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #fff;
  color: #111;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.mk-ls__row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.mk-ls__start {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 44px;
  border: none;
  border-radius: 6px;
  background: #555 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700;
  cursor: pointer;
}

.mk-ls__form-note {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.mk-ls__form-note.is-ok {
  color: #1b5e20;
}

.mk-ls__form-note.is-err {
  color: #c62828;
}

/* ---------- Chat room ---------- */
.mk-ls__room {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.mk-ls__room[hidden] {
  display: none !important;
}

.mk-ls__messages,
.mk-chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mk-chat__bubble--sys {
  align-self: center;
  max-width: 92%;
  text-align: center;
  font-size: 13px;
  color: #9a9a9a !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 6px 8px !important;
  box-shadow: none !important;
}

.mk-chat__bubble--sys p {
  margin: 0;
  color: #9a9a9a !important;
  font-size: 13px;
  font-weight: 400;
}

.mk-chat__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 96%;
}

.mk-chat__row--me {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.mk-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #1b3a8e;
  color: #ebb058;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mk-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mk-chat__meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
  line-height: 1.2;
}

.mk-chat__meta strong {
  color: #444;
  font-weight: 700;
  margin-right: 6px;
}

.mk-chat__bubble {
  background: #fff;
  border-radius: 2px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  max-width: 100%;
}

.mk-chat__bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13.5px;
  line-height: 1.45;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
}

.mk-chat__bubble a {
  color: #1a73e8;
  text-decoration: underline;
  word-break: break-all;
}

.mk-chat__img {
  display: block;
  max-width: min(240px, 70vw);
  max-height: 280px;
  width: auto;
  height: auto;
  border-radius: 4px;
  margin: 0;
  object-fit: contain;
  background: #f5f5f5;
}

.mk-chat__row--me .mk-chat__bubble {
  background: #e8f1ff;
  border-color: #d0dff5;
}

/* Composer — pill on gray strip */
.mk-ls .mk-ls__composer {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 10px 12px 14px;
  background: #e4e7ec !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.mk-ls .mk-ls__composer input[type="text"],
.mk-ls .mk-ls__composer input[data-mk-ls-input] {
  flex: 1;
  min-height: 44px;
  height: 44px;
  border: 0 !important;
  outline: none !important;
  font-size: 16px !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #222 !important;
  border-radius: 999px 0 0 999px !important;
  padding: 0 4px 0 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  margin: 0 !important;
}

.mk-ls .mk-ls__composer .mk-ls__attach,
.mk-ls .mk-ls__composer .mk-ls__send,
.mk-ls .mk-ls__composer button[type="button"],
.mk-ls .mk-ls__composer button[type="submit"] {
  width: 42px !important;
  min-width: 42px !important;
  height: 44px !important;
  border: 0 !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #9a9a9a !important;
  cursor: pointer;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-weight: 400 !important;
  border-radius: 0 !important;
}

.mk-ls .mk-ls__composer .mk-ls__send,
.mk-ls .mk-ls__composer button[type="submit"] {
  border-radius: 0 999px 999px 0 !important;
  color: #9a9a9a !important;
  padding-right: 8px !important;
  width: 46px !important;
}

.mk-ls__statusline {
  display: none !important;
}

@media (min-width: 1024px) {
  body.mk-ls-open,
  body.mk-side-open {
    overflow: auto !important;
  }
}
