@import url(general.css);
@import url(layout.css);
@import url(header.css);
@import url(body.css);
@import url(sidebar.css);
@import url(main_content.css);
@import url(nav_thumbs.css);
@import url(help.css);
@import url(catalogue.css);
@import url(bird.css);
@import url(preset_message.css);
@import url(select_option.css);
@import url(footer.css);

@import url(my_favorites.css);
@import url(customer_comment.css);
@import url(faq.css);
@import url(shopping_cart.css);
@import url(feedback.css);

/* Presentation of Orders */
@import url(order.css);

/* Image Thumbnails, at the moment for Bird Fact pages */
@import url(thumbnails.css);

/* Database Record Attribute Editor */
@import url(database-record-value-editor.css);

/* Task */
@import url(task.css);

/* Gallery */
@import url(gallery.css);

/* ===== Twootz mobile patch v2 - safer ===== */

html {
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html,
body {
  overflow-x: hidden;
}

@media (max-width: 920px) {
  /* only release fixed desktop widths */
  #container_inner,
  #body_content,
  #footer_content,
  #top table,
  #main_menu #nav,
  #banner img,
  #main_content,
  #sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* stack main column and sidebar */
  #main_content,
  #sidebar {
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #sidebar {
    margin-top: 16px !important;
  }

  /* reduce header search size, but do NOT turn whole header into blocks yet */
  #top_search_keyword {
    width: 180px !important;
    max-width: 52vw !important;
    height: 38px !important;
    font-size: 16px !important;
  }

  #top_search_button {
    width: 78px !important;
    height: 38px !important;
    font-size: 16px !important;
    padding: 0 8px !important;
  }

  /* promo image in homepage source */
  a[title="Peckish Colour Watch 2026"] img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* text + image blocks near bottom of homepage */
  .main_content_block > div[style*="width:560px"] {
    float: none !important;
    width: auto !important;
    margin-right: 0 !important;
  }

  .main_content_block img[width="200"],
  .main_content_block img[height="220"] {
    display: block;
    margin: 12px auto 0;
    max-width: 200px;
    width: 100% !important;
    height: auto !important;
  }

  /* keep product cards single column for now */
  .block_product_info {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin-right: 0 !important;
  }

  .block_buy_select table,
  .table_product_rate {
    width: 100% !important;
  }

  .select_product_options {
    max-width: 100% !important;
  }
}

@media (max-width: 920px) {

  .block_product_info_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .block_product_info {
    width: calc(50% - 5px) !important;
    float: none !important;
    height: auto !important;
    margin-right: 0 !important;
  }

}

@media (max-width:920px){

.block_buy_select table{
    width:100% !important;
}

.block_buy_select td{
    display:block;
    width:100% !important;
}

.block_buy_select img{
    margin-top:6px;
}

}


/* iPad portrait / tablet nav fix */
@media (max-width: 920px) {
  #main_menu {
    background-color: #88b71d;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  #main_menu #nav {
    width: max-content !important;
    min-width: 100% !important;
    margin: 0 !important;
    white-space: nowrap;
  }

  #main_menu #nav > li {
    float: left;
    white-space: nowrap;
  }
}