:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

body {
  margin: 0;
  padding: 24px;
  background: #007BFF;
  text-align: center;
}

code {
  background: rgba(0, 0, 0, .06);
  padding: 2px 6px;
  border-radius: 6px;
}

input {
  width: 100%;
  padding: 8px 10px 8px 10px;
  background: #fff;
  text-align: center;
  margin-bottom: 10px; /* match .plans gap */
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #d7dbe6;
  font-size: 16px;
  outline: none;

}

input:focus {
  border-color: #007BFF;
}

.input-title {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 10px;
}

.input-help {
  margin-top: 2px;
  margin-bottom: 12px;
  color: #556;
  font-size: 11px;
}

.input-row{
  display:flex;
  gap:10px;
  align-items:flex-end;
  justify-content: center;
}

.input-row > div {
  flex: 1;
}


.fixed-sm {
  width: 50px;
}

.fixed-med {
  width: 90px;
}

.input-row > .fixed-sm,
.input-row > .fixed-med {
  flex: 0 0 auto;
}

/* New Entry lot line remove button alignment */
#lotLines .input-row > .fixed-sm {
  width: 35px;
}

#lotLines .input-row > .fixed-med {
  width: 50px;
}

@media (min-width: 1080px) { 
  #lotLines .input-row > .fixed-med {
    width: 80px;
  }
}

#lotLines .input-row > .fixed-sm {
  display: flex;
  justify-content: center;
  padding-bottom: 14px;
}

select {
  width: 100%;
  padding: 8px 10px 8px 10px;
  background: #fff;
  text-align: center;
  margin-bottom: 10px; /* match .plans gap */
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #d7dbe6;
  font-size: 16px;
  outline: none;
}

select:focus {
  border-color: #007BFF;
}

textarea {
  width: 100%;
  padding: 8px 10px 8px 10px;
  background: #fff;
  text-align: center;
  margin-bottom: 10px; /* match .plans gap */
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #d7dbe6;
  font-size: 16px;
  outline: none;
}

textarea:focus {
  border-color: #007BFF;
}

button {
  display: inline-block;
  width: auto;
  min-width: 140px;
  padding: 6px 10px;
  margin: 5px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #00CE0A;
  color: #333;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  text-decoration: none;
}

.button-group {
  display:flex;
  gap: 10px;
  margin-top: 10px;
}

.button-group button,
.button-group .regular-btn,
.button-group a {
  margin: 0;               /* your global button margin: 5px can cause odd spacing in flex */
}

.btn-50 {
  width: 50%;
}

.btn-full {
  width: 100%;
}

.header {
  padding: 10px;
}

.header h1 {
  font-size: 28px;
}

.sub-line {
  margin: 0 0 14px;
  color: #556;
}

.card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.card-inner {
  max-width: 100%;
  margin: 0 auto;
}

.info {
  background: #f3f5f9;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 20px 0 20px 0;
  font-size: 14px;
  color: #334;
}

.info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.menu-items {
  display: grid;
  gap: 5px;
}

.menu-item {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #d7dbe6;
  background: #fff;
  cursor: pointer;
}
.menu-item:active {
  transform: scale(.99);
}
.itemTitle {
  font-size: 18px;
  font-weight: 650;
}

.itemMeta {
  font-size: 16px;
  font-weight: 200;
  color: #556;
}

.message {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #d7dbe6;
  background: #fff;
}

.status-msg {
  color: #C60303;
  margin-top: 18px;
  min-height: 18px;
  white-space: pre-line;
}

.small {
  margin: 0;
  color: #556;
  font-size: 14px;
  padding-bottom: 30px;
}

.footer {
  margin-top: 20px;
  color: #667;
}

.tiny {
  margin: 0;
  padding-bottom: 10px;
  font-size: 12px;
}

.link {
  color: #3b6cff;
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

.smallBtn {
  display: inline-block;
  width: auto;
  min-width: 0;  
  padding: 6px 10px;
  margin: 5px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  color: #333;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  text-decoration: none;
}

.smallBtn:hover {
  background: #ececec;
}

.smallBtn:active {
  transform: scale(0.98);
}

.smallBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.smallBtn.danger {
  border-color: #d9534f;
  background: #fbeaea;
  color: #a94442;
}

.smallBtn.danger:hover {
  background: #f4d6d6;
}


/* Inventory table CSS start */
.inventoryTable {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

.inventoryTable th {
  text-align: center;
  padding: 6px 4px;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
}

.inventoryTable td {
  text-align: center;
  padding: 6px 4px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.iconBtn svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.iconBtn {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  color: #333;
}

.iconBtn:hover {
  opacity: 0.7;
}

.iconBtn.danger {
  color: #c0392b;
}

.iconBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Inventory table CSS end */


/* Terms popup CSS start */
.terms-link {
  text-align: center;
  margin-top: 12px;
}
.terms-link a {
  font-size: 12px;
  color: #6b7280;
  text-decoration: underline;
}
.modal {
  position: fixed;
  padding: 24px;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.modal:target {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 20px 22px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  position: relative;
  animation: pop 0.18s ease-out;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  text-decoration: none;
  color: #9ca3af;
}
.modal-close:hover {
  color: #111827;
}
.modal-body {
  font-size: 16px;
  color: #374151;
  line-height: 1.5;
}
.modal-body .small {
  font-size: 14px;
  color: #6b7280;
}
@keyframes pop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Terms popup CSS end */





