/* Interim fixes on venki.am (Oct 2026). Loaded after main*.css, so these rules win.
   Kept apart from the compiled main*.css files, which come from resources/sass. */

/* Header: a square call button instead of the number (like psak.am), on every screen size. */
#header-right-block {
  display: flex;
  align-items: center;
  height: 75px;
  margin-top: 0;
}

#header-right-block .change-language {
  margin: 0 0 0 4px;
  line-height: 1;
}

#header-right-block .change-language img {
  margin: 0;
}

#header-right-block a.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: 12px;
  border: 1px solid #c9c9a8;
  border-radius: 8px;
  background: #fff;
  color: #999966;
  font-size: 28px;
  text-decoration: none;
}

/* "#header-right-block a" in main2.css sets the colour too, so these rules name the id as well.
   The hover tint is light on purpose: on phones it can stay after a tap, and that must not look stuck. */
#header-right-block a.header-call:hover {
  background: #f3f3ea;
  border-color: #999966;
  color: #4d4d33;
}

#header-right-block a.header-call:active {
  background: #e6e6d6;
}

#header-right-block a.header-call:focus {
  outline: none;
  text-decoration: none;
}

/* Keyboard users still see where they are. */
#header-right-block a.header-call:focus-visible {
  outline: 2px solid #999966;
  outline-offset: 2px;
}

/* Phones: the logo moves next to the menu button so the call button fits. */
@media (max-width: 600px) {
  #header-logo {
    width: 150px;
    margin: 0 0 0 62px;
    padding-top: 16px;
  }

  #header-right-block a.header-call {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    font-size: 24px;
  }
}

@media (max-width: 359px) {
  #header-logo {
    width: 120px;
    padding-top: 20px;
  }
}

/* Sidebar: open by default on desktop (see layouts/sidebar.blade.php). No slide-in on page load. */
#sidebar.no-anim,
#sidebar.no-anim .custom-menu {
  transition: none !important;
}

/* Address picker on the product page (like psak.am): icon tabs, a search field, a grid of venue cards. */
.venue-tabs {
  display: flex;
  gap: 6px;
}

.venue-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 96px;
  padding: 8px 12px 6px;
  border: 1px solid #999966;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.2;
}

/* Black on every tab, like psak.am. */
.venue-icon {
  width: 36px;
  height: 36px;
  fill: #1e1e1e;
}

.venue-tab.active {
  background: #999966;
  color: #000;
  font-weight: 700;
}

.venue-tab:focus {
  outline: none;
}

.venue-tab:focus-visible,
.venue-card:focus-visible {
  outline: 2px solid #4d4d33;
  outline-offset: 2px;
}

.venue-box {
  border: 1px solid #999966;
  border-radius: 0 6px 6px 6px;
  padding: 12px;
}

.venue-pane {
  display: none;
}

.venue-pane.active {
  display: block;
}

.venue-search {
  margin-bottom: 12px;
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: 470px;
  overflow-y: auto;
  padding: 3px;
}

.venue-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 6px 8px;
  border: 1px solid #c9c9a8;
  border-radius: 6px;
  background: #fff;
  color: #4d4d33;
  text-align: center;
  cursor: pointer;
}

.venue-card img {
  width: 100%;
  height: 96px;
  margin-bottom: 6px;
  border-radius: 4px;
  object-fit: cover;
}

.venue-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.venue-address {
  margin-top: 2px;
  color: #77774f;
  font-size: 12px;
  line-height: 1.25;
}

/* The round check mark in the corner. */
.venue-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px #999966;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.venue-card:hover {
  border-color: #999966;
}

.venue-card.selected {
  border: 2px solid #4d4d33;
  padding: 5px 5px 7px;
  background: #f6f6ee;
}

.venue-card.selected::after {
  content: "\2713";
  background: #999966;
}

.venue-empty {
  display: none;
  margin: 4px 0 0;
  color: #77774f;
}

@media (max-width: 600px) {
  .venue-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 4px 6px;
    font-size: 13px;
  }

  .venue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 430px;
  }
}

@media (max-width: 359px) {
  .venue-name {
    font-size: 15px;
  }
}
