:root{
  --text:#172033;
  --muted:#667085;
  --blue:#2563eb;
  --blue2:#4f46e5;
  --border:#e5eaf2;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  font-family:"Open Sans",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left,rgba(37,99,235,.09),transparent 32%),
    linear-gradient(180deg,#f8fbff 0%,#f3f6fb 100%);
  overflow-x:hidden;
}

a{
  color:#1683e8;
  text-decoration:none;
  font-weight:700;
}

#main-container{
  width:min(920px,calc(100% - 32px));
  margin:16px auto 70px;
}

/* TOPBAR */
#guest-topbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding:12px 24px!important;
  margin-bottom:20px!important;
  background:rgba(255,255,255,.92)!important;
  border-bottom:1px solid var(--border)!important;
}

#guest-logo img{
  display:block!important;
  max-width:260px!important;
  width:100%!important;
  height:auto!important;
}

/* LOGIN */
#user-area{
  width:max-content!important;
  max-width:100%!important;
  margin:0!important;
  padding:10px 14px!important;
  background:rgba(219,234,254,.46)!important;
  border:1px solid var(--border)!important;
  border-radius:15px!important;
  box-shadow:
  0 10px 30px rgba(16,24,40,.09),
  0 0 0 3px rgba(37,99,235,.12)!important;
  text-align:center!important;
}

#user-area form{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}

#user-area b{
  font-size:13px!important;
  color:#344054!important;
}

#login-input{
  display:block!important;
}

#login-input > div{
  display:flex!important;
  align-items:center!important;
  position:relative!important;
}

#login_key{
  width:210px!important;
  height:40px!important;
  border:1px solid var(--border)!important;
  border-radius:11px!important;
  padding:0 42px 0 14px!important;
  background:#fff!important;
  outline:none!important;
  font-size:13px!important;
}

#user-area input[type="submit"]{
  height:40px!important;
  border:0!important;
  border-radius:11px!important;
  padding:0 20px!important;
  background:linear-gradient(135deg,var(--blue),var(--blue2))!important;
  color:#fff!important;
  font-weight:800!important;
  cursor:pointer!important;
  box-shadow:0 10px 24px rgba(37,99,235,.23)!important;
}

/* YHTEINEN HAKU + INFO -KORTTI */
#search,
#guest-info{
  background:rgba(219,234,254,.46)!important;
  border-left:1px solid rgba(147,197,253,.45)!important;
  border-right:1px solid rgba(147,197,253,.45)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

#search{
  margin:0!important;
  padding:36px 28px 16px!important;
  border-top:1px solid rgba(147,197,253,.45)!important;
  border-bottom:0!important;
  border-radius:22px 22px 0 0!important;
}

#search::before,
#search::after{
  display:none!important;
}

#search > div{
  display:block!important;
  width:100%!important;
  max-width:820px!important;
  margin:0 auto!important;
}

#search-form{
  width:100%!important;
  position:relative!important;
}

#search-engine,
#search-submit{
  display:none!important;
}

#keyword,
.input{
  width:100%!important;
  height:56px!important;
  border:2px solid #8fb3ff!important;
  border-radius:16px!important;
  padding:0 22px 0 48px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:16px!important;
  outline:none!important;
  box-shadow:
    0 0 0 4px rgba(37,99,235,.10),
    0 12px 28px rgba(16,24,40,.08)!important;
}

#search-form::before{
  content:"";
  position:absolute;
  left:16px;
  top:19px;
  width:18px;
  height:18px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35m1.35-5.65a7 7 0 11-14 0 7 7 0 0114 0z' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size:contain;
  z-index:2;
  pointer-events:none;
}

#search-form::after{
  content:"Paina Enter hakuun";
  display:block;
  margin-top:7px;
  color:#667085;
  font-size:13px;
  font-weight:700;
  text-align:center;
}

/* INFO-OSA */
#guest-info{
  position:relative!important;

  margin:0 0 20px!important;
  padding:28px!important;
  padding-right:310px!important;

  border-top:0!important;
  border-bottom:1px solid rgba(147,197,253,.45)!important;
  border-radius:0 0 22px 22px!important;

  display:grid!important;
  grid-template-columns:180px 1fr!important;
  grid-template-rows:auto auto!important;

  column-gap:28px!important;
  row-gap:14px!important;

  min-height:220px!important;
  text-align:left!important;
}

/* wrapper */
#guest-info > div{
  display:contents!important;
}

/* 🔍 KUVA vasemmalle keskelle */
#guest-info::before{
  content:"";
  grid-column:1!important;
  grid-row:1 / span 2!important;

  width:240px!important;
  height:180px!important;

  align-self:center!important;
  justify-self:center!important;

  background:url("search-image.png") center/contain no-repeat!important;
}

/* 📝 TEKSTIT keskelle */
#guest-info p:first-child{
  grid-column:2!important;
  grid-row:1!important;

  margin:0!important;
  max-width:520px!important;

  color:#172033!important;
  font-size:15px!important;
  line-height:1.55!important;
  font-weight:800!important;

  align-self:end!important;
}

#guest-info p:nth-child(2){
  grid-column:2!important;
  grid-row:2!important;

  margin:0!important;
  max-width:520px!important;

  color:#172033!important;
  font-size:15px!important;
  line-height:1.55!important;
  font-weight:800!important;

  align-self:start!important;
}

/* oikean puolen pieni teksti */
#guest-info p:nth-child(3){
  position:absolute!important;
  right:28px!important;
  top:28px!important;

  width:250px!important;
  margin:0!important;

  color:#172033!important;
  font-size:14px!important;
  line-height:1.55!important;
}

/* 🛒 NAPPI oikealle alas */
#guest-info a{
  position:absolute!important;
  right:28px!important;
  bottom:-100px!important;

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

  min-width:190px!important;
  min-height:42px!important;

  margin:0!important;
  padding:0 24px!important;

  border-radius:8px!important;
  background:linear-gradient(135deg,var(--blue),var(--blue2))!important;
  color:#fff!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:0 12px 28px rgba(37,99,235,.25)!important;
}

#guest-info a::before{
  content:"🛒";
  margin-right:8px;
}

/* BANNERI */
#b-container{
  display:block!important;
  margin:50px 0!important;
  border-radius:14px!important;
  overflow:hidden!important;
  box-shadow:0 10px 24px rgba(16,24,40,.08)!important;
}

#b-container img{
  width:100%!important;
  height:auto!important;
  display:block!important;
}

/* MAINOKSET */
#link-container{
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  justify-content:center!important;
  gap:20px!important;
  margin-top:0!important;
}

#link-container > .markkinointi{
  width:100%!important;
  margin:0!important;
  border-radius:14px!important;
  overflow:hidden!important;
  box-shadow:0 10px 24px rgba(16,24,40,.08)!important;
}

#link-container img{
  width:100%!important;
  height:auto!important;
  display:block!important;
}

#kalenteri,
#spacer{
  display:none!important;
}

/* FOOTER */
#footer{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:50!important;
  padding:9px 18px!important;
  background:rgba(255,255,255,.94)!important;
  border-top:1px solid var(--border)!important;
  color:#667085!important;
  font-size:12px!important;
  text-align:center!important;
}

#footer span{
  color:#22a06b!important;
  font-weight:900!important;
}

#footer a{
  color:#667085!important;
  font-weight:600!important;
}

.login-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}

.login-icon svg{
  width:24px;
  height:24px;
  fill:#64748b;
}

#login_key{
  height:40px;
  padding:0 36px 0 10px;
  border-radius:10px;
  border:1px solid #ccc;
}

.login-btn{
  margin-top:5px;
  padding:8px 16px;
  border:none;
  border-radius:10px;
  background:#2563eb;
  color:white;
  font-weight:700;
  cursor:pointer;
}

/* MOBIILI */
@media(max-width:850px){
  #main-container{
    width:calc(100% - 16px)!important;
    margin:8px auto 18px!important;
  }

  #guest-topbar{
    flex-direction:column!important;
    gap:10px!important;
    padding:12px!important;
  }

  #guest-logo img{
    max-width:200px!important;
  }

  #user-area{
    width:100%!important;
  }

  #user-area form{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }

  #login-input,
  #login-input > div,
  #login_key,
  #user-area input[type="submit"]{
    width:100%!important;
  }

  #search{
    padding:18px 10px 12px!important;
    border-radius:16px 16px 0 0!important;
  }

  #keyword,
  .input{
    height:46px!important;
    border-radius:13px!important;
    font-size:13px!important;
    padding:0 14px 0 40px!important;
  }

  #search-form::before{
    left:13px!important;
    top:15px!important;
    width:15px!important;
    height:15px!important;
  }

  #guest-info{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    padding:20px 14px 26px!important;
    padding-right:14px!important;
    gap:12px!important;
    overflow:hidden!important;
    min-height:auto!important;
  }

  #guest-info > div{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    width:100%!important;
  }

  #guest-info::before{
    content:""!important;
    position:static!important;
    grid-column:auto!important;
    grid-row:auto!important;
    width:110px!important;
    height:80px!important;
    max-width:110px!important;
    margin:0 auto 4px!important;
    flex:0 0 auto!important;
    background:url("search-image.png") center/contain no-repeat!important;
  }

  #guest-info p:first-child,
  #guest-info p:nth-child(2),
  #guest-info p:nth-child(3),
  #guest-info p{
    position:static!important;
    grid-column:auto!important;
    grid-row:auto!important;
    display:block!important;
    width:100%!important;
    max-width:320px!important;
    margin:0 auto 8px!important;
    text-align:center!important;
    font-size:14px!important;
    line-height:1.45!important;
    font-weight:700!important;
  }

  #guest-info a{
    position:static!important;
    grid-column:auto!important;
    grid-row:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:280px!important;
    min-width:0!important;
    min-height:42px!important;
    margin:8px auto 0!important;
    padding:0 16px!important;
    text-align:center!important;
    justify-self:center!important;
  }

  #b-container{
    margin:30px 0 30px!important;
    border-radius:12px!important;
  }

  #link-container{
    grid-template-columns:repeat(3,1fr)!important;
    gap:8px!important;
  }

  #footer{
    position:static!important;
    margin-top:30px!important;
  }

  .login-icon svg{
    width:24px !important;
    height:24px !important;
  }
}

@media(max-width:480px){
  #main-container{
    width:calc(100% - 12px)!important;
  }

  #guest-info{
    padding:16px 10px 20px!important;
    gap:10px!important;
  }

  #guest-info::before{
    width:90px!important;
    height:65px!important;
    max-width:90px!important;
  }

  #guest-info p:first-child,
  #guest-info p:nth-child(2),
  #guest-info p:nth-child(3),
  #guest-info p{
    max-width:270px!important;
    font-size:13px!important;
  }

  #guest-info a{
    max-width:250px!important;
    min-height:40px!important;
    font-size:13px!important;
  }
}


