/*   
Theme Name: uncork
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

h1, h2, h3, h4, h5, h6{font-weight: 600;}

  .skiptranslate,
  .goog-te-gadget span,
  .goog-te-banner-frame,
  .goog-te-gadget-simple {
    display: none !important;
  }

  a{    font-weight: 600;}

  #lang-switcher {
    position: fixed;
    top: 20px;
    right: 53px;
    z-index: 999999999999999999999;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: none;
    justify-content: center;
    align-items: center;
  }
body {
    font-size: 14px;
}
ol, ul {
    margin:0!important;
       margin-top: 20px !important;
}
  body {
    top: 0 !important;
  }

body[data-scroll-locked] #lang-switcher {
    display: none!important;
}


body:not(.home) .container {
    padding: 10px 20px;
}
body:not(.home) #lang-switcher{position: absolute;    top: 18px;
    right: 20px;}
body:not(.home) h1 { 
    display: block;
    font-size: 2em;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}
body:not(.home) h2 {
    display: block;
    font-size: 1.5em;
    margin-top: 0.83em;
    margin-bottom: 0.83em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}
body:not(.home) h3 { 
    display: block;
    font-size: 1.17em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}
body:not(.home) h4 { 
    display: block;
    margin-top: 1.33em;
    margin-bottom: 1.33em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}
body:not(.home) h5 { 
    display: block;
    font-size: .83em;
    margin-top: 1.67em;
    margin-bottom: 1.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}
body:not(.home) h6 { 
    display: block;
    font-size: .67em;
    margin-top: 2.33em;
    margin-bottom: 2.33em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

/*body div[role="dialog"] {
    bottom: -100%; transition: 0.5s ease;
}
body.popup-active div[role="dialog"] {
    bottom: 0;
    transition: 0.5s ease;
}*/

div[role="dialog"] svg g:not(:last-child) circle + text {
    mix-blend-mode: normal;
}
*:focus,
*:focus-visible {
    outline: none !important;
}
svg:focus,
svg *:focus {
    outline: none !important;
}
button:focus,
button:focus-visible,
a:focus,
a:focus-visible,
div:focus {
    outline: none!important;
    box-shadow: none!important;
}
.fixedmenu{position: fixed; bottom: 0;width: 100%;left: 0}

body.popup-active div[data-slot="dialog-content"] {
    height: auto;
}
body.popup-active div[data-slot="dialog-content"] h2 {
    padding: 5px 0px;
}
body.popup-active div[data-slot="dialog-content"] h2 + button {
    position: relative;
    right: 0;
    top: 0;
}
body.popup-active div[data-slot="dialog-content"] .ring-offset-background{display: none;}

html, body, #root, .min-h-screen, .h-screen{min-height: calc(var(--vh, 1vh) * 100)!important}

.fixed.inset-0.z-50.flex.items-center.justify-center.p-4 {
    backdrop-filter: blur(10px);
}
.font-bold {
    font-weight: 600 !important;
}
.log {
 padding: 20px 20px 90px;
    width: 100%;
}
  .gigachat {
      display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%;
min-height: calc(var(--vh, 1vh) * 100);
    justify-content: flex-end;
    align-items: center;max-width: 100%!important;
}
.gigachat form {
    padding: 10px;    width: 100%;
    background: #eee;
    border-radius: 10px;
    flex-direction: column;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
      width: 100%;
    gap: 10px;
}
.gigachat form input {
    padding: 10px;
    background: #fff;    width: 100%;
    border-radius: 10px;
}
.gigachat form button {
    padding: 10px;
    background: #000;    width: 100%;
    border-radius: 10px;
    color: #ffff;
}
.page-id-1856 div#lang-switcher {
    display: none !important;
}
a {
    color: #9F5721;
    text-decoration: underline;
}
/* --- reset только внутри виджета --- */
.gigachat .gc-form,
.gigachat .gc-form *{
  box-sizing:border-box;
}

.gigachat .gc-form{
  width:100%;
  max-width: 100%;
  margin: 12px auto 0;

  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:10px !important;
   
    bottom: 0;
  flex-wrap:nowrap !important;       /*
  position: fixed;
    bottom: 0;
    left: 0;*/
}

/* --- кнопки слева/справа --- */
.gigachat .gc-btn{
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  min-height:48px !important;

  border-radius:999px !important;
  border:0 !important;

  background:#1A1A1A !important;
  color:#fff !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  flex:0 0 auto !important;          /* НЕ растягивать */
  padding:0 !important;

  cursor:pointer;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
}

.gigachat .gc-btn:hover{ background:#000 !important; }
.gigachat .gc-btn:disabled{ opacity:.5; cursor:not-allowed; }

/* справа “отправить” серым как на макете */
.gigachat .gc-send{
  background:#6B7280 !important;      /* серый */
}
.gigachat .gc-send:hover{
  background:#4B5563 !important;
}

/* --- инпут по центру --- */
.gigachat .gc-inputwrap{
  flex:1 1 auto !important;           /* занимает всё доступное */
  position:relative !important;
  min-width:0 !important;             /* важно для flex */
}

.gigachat .gc-input{
  width:100% !important;
  height:48px !important;
  padding: 0 46px 0 16px !important;

  border-radius:18px !important;
  background:#fff !important;

  border:1px solid #E5E7EB !important;
  color:#1A1A1A !important;

  outline:none !important;
  display:block !important;           /* но без width:100% на форме */
}

.gigachat .gc-input::placeholder{ color:#9CA3AF !important; }

.gigachat .gc-input:focus{
  border-color: rgba(26,26,26,.35) !important;
  box-shadow:0 0 0 3px rgba(26,26,26,.12) !important;
}

/* --- микрофон внутри инпута --- */
.gigachat .gc-mic{
  position:absolute !important;
  right:10px !important;
  top:50% !important;
  transform:translateY(-50%) !important;

  width:34px !important;
  height:34px !important;
  border-radius:999px !important;

  border:0 !important;
  background:transparent !important;

  color:#111827 !important;
  cursor:pointer;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding:0 !important;
}

.gigachat .gc-mic:hover{
  color:#000 !important;
  background:rgba(0,0,0,.04) !important;
}

a.btn {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: inline-block;
}

/* container is assumed to be flex column */
.chat-bubble {
  max-width: 95%!important;
  border-radius: 18px;
  padding: 12px 14px;
  white-space: pre-wrap;
}

.chat-bubble.user {
  align-self: flex-end;
  background: #1A1A1A;
  color: #fff;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: #F7F5F4;
  color: #1A1A1A;
  border: 1px solid #eee;
}

.chat-image-wrap {
  align-self: flex-end;
  max-width: 60%;
  background: #1A1A1A;
  border-radius: 18px;
  padding: 8px;
}

.chat-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.chat-bubble.user + .chat-bubble.user {
    display: none;
}