/* ===== Reset & Base ===== */
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: Arial, sans-serif; background: #fff; color: #333; }

    /* ===== Header (copy from search-window.html) ===== */
    header { 
      display: flex; 
      align-items: center; 
      background-color: #008C00; 
      height: 106px;
      position: relative;
    }
    .logo { 
      background: #ffde00; 
      width: 340px; 
      height: 50%; 
      clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); 
      display: flex; 
      align-items: center; 
      margin-top: -34px; 
      justify-content: center; 
      position: relative;
      cursor: pointer;
    }
    .logo::after { content: ""; position: absolute; bottom: 0; left: 0; width: 195px; height: 6px; }
    .logo h1 { 
      font-family: 'Cooper Black', sans-serif !important;
      font-weight: 400; 
      font-size: 27px; 
      font-style: italic;
      color: #1FAFF7; 
      letter-spacing: 1px; 
      transform: skew(-5deg);
    }
    .header-title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);} 
    .header-title h2 { 
      font-family: 'Arial Black'; !important;
      font-size: 31px; 
      font-style: italic;
      font-weight: bold; 
      color: #fff; 
    }

    /* ===== Page container & card (like search-window) ===== */
    .container { max-width: 900px; margin: 30px auto; padding: 0 20px; }
    .card { 
      margin: 0 auto; 
      max-width: 850px; 
      background: #fff; 
      border: 1px solid #cfcfcf; 
      border-radius: 12px; 
      box-shadow: 0 8px 22px rgba(0,0,0,0.08);
      padding: 28px; 
    }

    /* ===== Form layout ===== */
    .section { margin-bottom: 22px; }
    .row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

    /* Inputs & selects like search-window */
    label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
    select, input[type="text"], input[type="number"], input[type="date"] {
      padding: 8px 12px; 
      font-size: 16px; 
      border: 1px solid #000; 
      border-radius: 8px; 
      background-color: #fff; 
      appearance: none;
    }
    select {
      background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 7 5-7z' fill='%23000'/%3E%3C/svg%3E"); 
      background-repeat: no-repeat; 
      background-position: right 12px center; 
      padding-right: 28px;
    }

    .hint { font-size: 0.98em; color: #333; }
    .error-message { color: red; display: none; margin-top: -10px; margin-bottom: 10px; }

    /* ===== Angebot einstellen button (style from online-einkauf .anbieten-btn) ===== */
    .submit-btn{
      font-size: 24px;
      font-weight: bold;
      padding: 15px 60px;
      border-radius: 12px;
      cursor: pointer;
      transition: all .25s ease;
      position: relative;
      isolation:isolate;

      background: rgba(255,102,0,0.96);
      color: #fff;
      border: 4px solid #008C00;
      outline: 4px solid rgba(255,255,255,0.65);
      outline-offset: -4px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }
    .submit-btn::after{
      content:"";
      position:absolute; inset:0;
      border-radius: 10px;
      background: linear-gradient(145deg, rgba(255,255,255,0.55), rgba(255,255,255,0.0) 45%);
      opacity:.35;
      pointer-events:none;
    }
    .submit-btn:hover,
    .submit-btn:active{
      background: rgba(255,255,255,0.90);
      color: #008C00;
      outline-color: transparent;
      box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    }


    /* ===== Info button & bubble (copied from search-window) ===== */
    .info-button {
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      line-height: 1;
    }

    .info-bubble {
      display: none;
      position: fixed;
      top: 31%;
      left: 55%;
      transform: translate(-50%, -50%);
      background-color: #f9f9f9;
      border: 1px solid #ccc;
      border-radius: 10px;
      padding: 20px;
      z-index: 1000;
      width: 300px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .info-bubble p { margin: 0; font-size: 1em; }
    .info-bubble button { margin-top: 10px; padding: 6px 12px; font-size: 0.9em; cursor: pointer; }

    /* ===== Modal ===== */
    .modal-overlay{
      position: fixed; inset: 0;
      background: rgba(0,0,0,.35);
      display: none; align-items: center; justify-content: center;
      z-index: 9999;
    }
    .modal{
      background:#fff;
      border-radius: 20px;
      padding: 20px;
      width: 60%;
      max-width: 400px;
      min-width: 260px;
      border: 3px solid #008C00;
      box-shadow: 0 12px 30px rgba(0,0,0,.2);
      text-align: center;
      margin: 0 auto;
    }
    .modal h3{
      font-family: inherit;
      font-size: 24px;
      font-weight: 800;
      color:#555;
      margin: 16px 0 34px;
    }
    .modal-actions{
      display:flex; gap:16px; justify-content:center; align-items:center;
    }
    .btn-primary{
    background: #005B00;
    color: #fff;
    border: none;
    padding: 14px 44px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 16px;
    cursor: pointer;
}

.btn-primary:focus{
  outline: 4px solid rgba(0, 91, 0, 0.35);
}
    .btn-primary:focus{ outline: 4px solid rgba(255,90,20,.35); }
    .btn-secondary{
      background:#f3f3f3; 
      color:#b8b8b8;
      border:3px solid #e8e8e8;
      padding:14px 24px;
      font-size:18px; font-weight:500;
      border-radius:16px;
      cursor:pointer;
    }

/* ===== Refinements moved from inline styles ===== */
.row-gap-12{ gap:12px; }

.min-type-select{ min-width:220px; }
.min-qty-input{
  width:110px;
  display:none; /* controlled by JS */
}

.offer-title-input{
  display:block;
  width:100%;
  max-width:560px;
}

/* platform searchable input */
.platform-combo{
  flex: 1 1 260px;
  min-width: 220px;
}
.platform-input{
  width: 260px;
  max-width: 100%;
}

.andere-input{
  display:none; /* controlled by JS */
  width:220px;
}

.min-amount-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.min-amount-input{ width:100px; }

.form-inline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.date-input{ min-width:180px; }
.pickup-combobox{
  position:relative;
  min-width:260px;
  flex:0 1 320px;
}
.pickup-input{
  width:100%;
  min-width:260px;
  padding-right:36px !important;
  background-image:url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 7 5-7z' fill='%23000'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
}
.pickup-input:focus{
  outline:3px solid rgba(0,140,0,.22);
  border-color:#008C00;
}
.pickup-results{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  right:0;
  z-index:1200;
  max-height:260px;
  overflow-y:auto;
  background:#fff;
  border:1px solid #aaa;
  border-radius:8px;
  box-shadow:0 8px 22px rgba(0,0,0,.16);
}
.pickup-option{
  display:block;
  width:100%;
  padding:10px 12px;
  border:0;
  border-bottom:1px solid #eee;
  background:#fff;
  color:#222;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.pickup-option:last-child{ border-bottom:0; }
.pickup-option:hover,
.pickup-option.is-active{
  background:#eaf7ea;
  color:#005b00;
}
.pickup-status{
  min-height:18px;
  margin-top:4px;
  color:#666;
  font-size:12px;
}
.pickup-row{
  flex-wrap:nowrap;
  gap:8px;
}
.pickup-row > .hint{
  flex:0 0 auto;
  white-space:nowrap;
}
.pickup-row .pickup-combobox{
  min-width:210px;
  flex:1 1 250px;
}
.pickup-row .pickup-input{
  min-width:210px;
}

@media (max-width: 760px){
  .pickup-row{ flex-wrap:wrap; }
  .pickup-row > .hint{ white-space:normal; }
  .pickup-row .pickup-combobox{ flex:1 1 100%; }
}

.submit-section{
  text-align:center;
  margin-top:8px;
}

/* ===== SAME EFFECT AS ANBIETEN BUTTON ===== */
.submit-btn{

  font-size: 24px;
  font-weight: bold;
  padding: 15px 60px;
  border-radius: 14px;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  isolation: isolate;

  /* glossy orange */
  background: linear-gradient(
    180deg,
    rgba(80,220,80,0.95),
    rgba(0,140,0,0.98),
    rgba(0,90,0,1)
  ) !important;

  color: #ffffff !important;

  border: 3px solid rgba(255,255,255,0.35) !important;

  box-shadow:
    0 10px 26px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -8px 18px rgba(0,0,0,0.30);

}

/* remove old glass shine */
.submit-btn::before,
.submit-btn::after{
  display: none !important;
}

/* ===== hover = white ===== */
.submit-btn:hover{

  background: linear-gradient(
    180deg,
    #ffffff,
    #f3f3f3,
    #e6e6e6
  ) !important;

  color: #008C00 !important;

  box-shadow:
    0 16px 36px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.90),
    inset 0 -8px 18px rgba(0,0,0,0.10);

  transform: translateY(-2px);
}

/* click effect */
.submit-btn:active{
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(0,0,0,0.22);
}


@font-face {
  font-family: "Merriweather";
  src: url("fonts/Merriweather_48pt-Black.ttf") format("truetype");
  font-display: swap;
}

.header-title h2{
  font-family: "Merriweather", Arial, sans-serif !important;
  font-size: 35px;
  font-weight: bold !important;
  font-style: normal; /* أو italic إذا أردت نفس الميلان الحالي */
}

/* OK button */
#okBtn {
  background: #005B00 !important;
  color: #ffffff !important;
  border: 3px solid #7ED957 !important;
  outline: none !important;
}

/* إزالة الإطار البرتقالي عند التركيز */
#okBtn:focus,
#okBtn:focus-visible,
#okBtn:active {
  outline: 4px solid #7ED957 !important;
  outline-offset: -2px;
  border-color: #97FF7E !important;
}

/* ===== Benutzer-Icons und Einstellungsmenü wie auf der Index-Seite ===== */
.top-icons {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 25px;
}

.top-icons .icon-btn {
  width: 43px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-icons .icon-btn img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(20%) sepia(40%) saturate(2500%) hue-rotate(170deg) brightness(60%) contrast(80%);
}

.settings-menu {
  position: relative;
  display: inline-flex;
}

.settings-icon-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.settings-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 150px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.settings-dropdown::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 100%;
  height: 10px;
}

.settings-menu.is-open .settings-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.settings-item {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}

.settings-item:hover,
.settings-item:focus-visible {
  background: #f5f5f5;
}

@media (max-width: 900px) {
  header { padding-right: 12px; }
  .top-icons { right: 12px; gap: 10px; }
  .top-icons .icon-btn,
  .top-icons .icon-btn img { width: 36px; height: 36px; }
  .header-title { max-width: 48%; text-align: center; }
  .header-title h2 { font-size: 22px; }
}
