/* OTONA CLIP Compact Header — limited to Cocoon header only. */
@media screen and (min-width: 835px) {
  body.oc-compact-header-enabled #header-container {
    background: #fff;
  }
  body.oc-compact-header-enabled #header {
    background: #fff;
    border-bottom: 1px solid #ececf0;
    box-shadow: 0 1px 3px rgba(25, 25, 35, .025);
  }
  body.oc-compact-header-enabled #header-in {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(12px, 2vw, 30px) !important;
    min-height: 64px;
    max-width: 1440px;
    margin-inline: auto !important;
    padding: 6px 20px !important;
    box-sizing: border-box;
  }
  body.oc-compact-header-enabled #header-in .logo-header {
    flex: 0 0 clamp(170px, 16vw, 224px) !important;
    width: clamp(170px, 16vw, 224px) !important;
    max-width: 224px !important;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: left !important;
  }
  body.oc-compact-header-enabled #header-in .logo-header .site-name {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 1 !important;
  }
  body.oc-compact-header-enabled #header-in .logo-header img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-searchbar {
    flex: 1 1 560px;
    min-width: 120px;
    max-width: 760px;
    margin: 0;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-searchform {
    display: flex;
    align-items: stretch;
    height: 42px;
    border: 1px solid #dddfe5;
    border-radius: 24px;
    overflow: hidden;
    background: #f8f9fa;
    margin: 0;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-searchform:focus-within {
    border-color: #ec517c;
    box-shadow: 0 0 0 3px rgba(236,81,124,.11);
  }
  body.oc-compact-header-enabled #header-in .oc-compact-searchform input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: none !important;
    outline: none;
    box-shadow: none !important;
    background: transparent;
    color: #393431;
    padding: 0 15px !important;
    margin: 0 !important;
    border-radius: 0;
    font-size: 14px;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-searchform input[type="search"]::placeholder {
    color: #85858c;
    opacity: 1;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-submit {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    border: none;
    border-left: 1px solid #e5e5e9;
    border-radius: 0;
    background: #ec517c;
    color: #fff;
    height: 100%;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-submit:hover,
  body.oc-compact-header-enabled #header-in .oc-compact-submit:focus-visible {
    background: #c73560;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    color: #393431;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-icon-button {
    appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: #393431;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-icon-button:hover,
  body.oc-compact-header-enabled #header-in .oc-compact-icon-button:focus-visible {
    color: #c73560;
    background: #fff0f4;
  }
  body.oc-compact-header-enabled #header-in details.oc-compact-menu {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 1;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-menu summary {
    list-style: none;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-menu summary::-webkit-details-marker {
    display: none;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 9999;
    min-width: 172px;
    max-width: min(90vw, 280px);
    padding: 8px;
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(35, 24, 30, .12);
    line-height: 1.5;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-menu-list,
  body.oc-compact-header-enabled #header-in .oc-compact-menu-list li {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-menu-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #393431;
    font-size: 14px;
    text-decoration: none;
  }
  body.oc-compact-header-enabled #header-in .oc-compact-menu-list a:hover,
  body.oc-compact-header-enabled #header-in .oc-compact-menu-list a:focus-visible {
    background: #fff0f4;
    color: #ba2955;
  }
}

/* Cocoon normally handles the mobile header separately. Keep its controls intact. */
@media screen and (max-width: 834px) {
  body.oc-compact-header-enabled #header-in .oc-compact-searchbar,
  body.oc-compact-header-enabled #header-in .oc-compact-actions {
    display: none !important;
  }
  body.oc-compact-header-enabled #header-in .logo-header img {
    width: auto !important;
    max-width: min(250px, 70vw) !important;
    height: auto !important;
  }
}
