.offert-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px; /* 15px mellan rader */
    margin: 2em 0;
}
.offert-list tr {
    background: #fff;
    box-shadow: 0 2px 12px rgba(35,55,100,.05);
    border-radius: 12px;
    overflow: hidden;
}
.offert-list td {
    padding: 0.7em;
    vertical-align: middle;
}
.offert-thumb {
    width: 80px;
}
.offert-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fafafa;
}
.offert-namn {
    min-width: 160px;
}
.offert-title {
    display: block;
    font-weight: 600;
    font-size: 1.09em;
    color: #2373be;
    text-decoration: none;
    margin-bottom: 0.15em;
}
.offert-title:hover {
    text-decoration: underline;
    color: #185287;
}
.offert-attribut {
    font-size: 0.97em;
    color: #222;
    margin-bottom: 0.1em;
}
.offert-antalradera {
    white-space: nowrap;
    text-align: right;
}
.offert-antalradera input[type="number"].offert-qty {
    width: 56px;
    font-size: 1.09em;
    text-align: center;
    padding: 0.45em 0.4em;
    border-radius: 8px;
    border: 1.5px solid #c8d1df;
    box-shadow: 0 1px 3px #eef3f8;
    outline: none;
    transition: border .18s;
    background: #f9fbfd;
    margin-right: 15px;
}
.offert-antalradera input[type="number"].offert-qty:focus {
    border: 1.5px solid #3b82f6;
    background: #fff;
}
.offert-remove {
    background: #ef4444;
    color: #fff;
    border: none;
    font-size: 1.25em;
    padding: 0.1em 0.3em;
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s;
    vertical-align: middle;
    display: inline-block;
}
.offert-remove:hover {
    background: #be3636;
}
.offert-send-btn {
    margin-right: 10px;
    background: #E94734;
    color: #fff;
    border: 1px solid #E94734;
    font-size: 1em;
    padding: 0.5em 1em;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1.5em;
    margin-bottom: 2em;
    float: left;
    box-shadow: 0 2px 12px rgba(35,55,100,.07);
}
.offert-send-btn:hover {
    background: transparent;
    color: #332726;
    border: 1px solid #E94734;
}
.offert-pdf-btn {
    background: transparent;
    color: #332726;
    border: 1px solid #E94734;
    font-size: 1em;
    padding: 0.5em 1em;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1.5em;
    margin-bottom: 2em;
    float: left;
    box-shadow: 0 2px 12px rgba(35,55,100,.07);
}
.offert-clear-all {
    background: transparent;
    color: #332726;
    border: 1px solid #E94734;
    font-size: 1em;
    padding: 0.5em 1em;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1.5em;
    margin-bottom: 2em;
    float: right;
    box-shadow: 0 2px 12px rgba(35,55,100,.07);
}
.offert-pdf-btn:hover,
.offert-clear-all:hover {
    background: #E94734;
    color: #fff;
}
.offert-list.tom {
    font-size: 1.1em;
    color: #888;
    text-align: center;
    margin: 2em 0;
}
.offert-btn {
    background: transparent;
    color: #332726;
    border: solid 1px #E94734;
    box-shadow: none;
    border-radius: 6px;
    padding: 12px 12px 12px 20px;
}
.offert-btn:hover {
    background: #E94734;
    color: #fff;
}
.offert-btn.offert-btn-disabled,
.offert-btn[disabled] {
    background: #a2a2a2 !important;
    color: #eee !important;
    cursor: not-allowed !important;
    opacity: 0.66;
    border: none;
    filter: grayscale(60%);
    box-shadow: none;
}

.offertforfragan-counter {
    display: inline-block;
    min-width: 28px;
    background: #E94734;
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    border-radius: 50%;
    text-align: center;
    padding: 0.3em 0.6em;
}

/* Overlay */

#offert-email-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(30, 38, 48, 0.44);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInBg .35s;
  /* Lägg till nedan rad om overlayen inte centrerar som väntat! */
  display: flex;
}

@keyframes fadeInBg {
  from { background: rgba(30,38,48,0); }
  to   { background: rgba(30,38,48,0.44); }
}

/* Själva overlay-innehållet */
.offert-overlay-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 38px 28px 28px 28px;
  box-shadow: 0 10px 50px rgba(36,42,52,0.17), 0 2px 8px rgba(50,60,90,0.09);
  min-width: 270px;
  max-width: 410px;
  width: 98vw;
  min-height: 100px;
  animation: overlayPop .28s cubic-bezier(.72,-0.05,.43,1.5);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
}

@keyframes overlayPop {
  from {
    transform: scale(.85) translateY(45px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Stäng-kors */
.offert-overlay-close {
  position: absolute;
  top: 11px;
  right: 17px;
  font-size: 1.9em;
  color: #7e8496;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 4px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.offert-overlay-close:hover {
  color: #222;
  background: #e7eafd;
}

/* Overlay rubrik */
.offert-overlay-content h3 {
  font-size: 1.5em !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  color: #29416c;
  margin-bottom: 1.2em !important;
  margin-top: 0;
  text-align: center;
}

@media (max-width: 450px) {
  .offert-overlay-content {
    min-width: 0;
    padding: 16px 5vw 12vw 5vw;
  }
  #offert-email-form {
    padding: 13px 1vw 8vw 1vw;
  }
}

#offert-email-form {
  max-width: 340px;
  margin: 0 auto;
  background: #fafbfc;
  border-radius: 12px;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 3px 24px rgba(60,60,60,0.09);
}

#offert-email-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #24292f;
  font-size: 1rem;
  letter-spacing: .01em;
}

#offert-email-form input[type="text"],
#offert-email-form input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 18px;
  border: 1px solid #ccd3da;
  border-radius: 5px;
  font-size: 1em;
  background: #fff;
  transition: border-color 0.2s;
}

#offert-email-form input[type="text"]:focus,
#offert-email-form input[type="email"]:focus {
  border-color: #4095e5;
  outline: none;
  background: #f4f9fd;
}

#offert-email-form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #332726;
  border: 1px solid #E94734;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(80,80,100,0.05);
  transition: background 0.2s, box-shadow 0.2s;
}

#offert-email-form button[type="submit"]:hover {
  background: #E94734;
  color: #fff;
  box-shadow: 0 3px 16px rgba(80,80,100,0.07);
}

#offert-email-status {
  margin-top: 14px;
  font-size: 0.97em;
  min-height: 1.3em;
}

#offert-email-status.success {
  color: #27780c;
}
#offert-email-status.error {
  color: #c00;
}


/* Mobilanpassning */

@media (max-width: 600px) {
    .offert-list, .offert-list th, .offert-list td {
        font-size: 0.97em;
    }
    .offert-list tr {
        display: block;
        margin-bottom: 1.3em;
    }
    .offert-thumb, .offert-namn, .offert-antalradera {
        display: block;
        width: 100% !important;
        text-align: left;
        padding: 0.7em;
    }
    .offert-antalradera {
        margin-top: 0.8em;
        text-align: left;
    }
    .offert-remove {
        margin-top: 0.7em;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
  .offert-overlay-content {
    max-width: 96vw;
    padding: 16px 2vw 10vw 2vw;
  }
  #offert-email-form {
    padding: 10px 0 5vw 0;
  }
}