.online-account-button {
  grid-column: 3;
  min-width: 90px;
  min-height: 42px;
  padding: 0 10px;
  overflow: hidden;
  color: #2b7a78;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(43,122,120,.24);
  border: 0;
  border-left: 1px solid rgba(23,37,47,.1);
  border-radius: 0 7px 7px 0;
  box-shadow: none;
  cursor: pointer;
}

.online-account-button.is-first-highlight { animation: onlineAccountGlow 1.8s ease-in-out infinite; }
@keyframes onlineAccountGlow { 50% { color: #fff; background: #d65a31; box-shadow: 0 0 0 5px rgba(214,90,49,.15); } }

.online-modal[hidden] { display: none; }
.online-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17,31,38,.58);
  backdrop-filter: blur(5px);
}

.online-modal__panel {
  width: min(920px, calc(100vw - 28px));
  max-height: min(88vh, 820px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(23,37,47,.14);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(20,40,49,.3);
}

.online-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(23,37,47,.1);
}

.online-modal__header h2,.online-modal__header p { margin: 0; }
.online-modal__header h2 { font-size: 20px; }
.online-modal__header p { margin-top: 3px; color: #60717d; font-size: 12px; }
.online-modal__header button { width: 34px; height: 34px; padding: 0; font-size: 20px; border: 1px solid rgba(23,37,47,.12); border-radius: 7px; background: #f4f7f7; cursor: pointer; }

.online-modal__nav { display: flex; gap: 6px; padding: 10px 18px 0; }
.online-modal__nav button { min-height: 34px; padding: 0 12px; color: #60717d; font: inherit; font-weight: 800; background: #f2f6f5; border: 0; border-radius: 6px; cursor: pointer; }
.online-modal__nav button.is-active { color: #fff; background: #2b7a78; }
.online-modal__body { padding: 16px 18px 22px; }
.online-modal__footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0 18px 16px; color: #60717d; font-size: 12px; }
.online-modal__footer a { color: #46646b; text-decoration: none; }
.online-modal__footer a:hover { color: #2b7a78; text-decoration: underline; }

.online-auth-grid,.online-admin-grid,.online-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.online-auth-single { width: min(430px, 100%); margin: 0 auto; }
.online-form { display: grid; gap: 10px; padding: 14px; background: #f7faf9; border: 1px solid rgba(23,37,47,.1); border-radius: 8px; }
.online-form h3,.online-admin-section h3,.online-order-history h3 { margin: 0; font-size: 15px; }
.online-form label { display: grid; gap: 5px; color: #39515a; font-size: 12px; font-weight: 700; }
.online-form input,.online-form textarea,.online-form select,.online-inline-form input { width: 100%; min-height: 38px; padding: 8px 10px; color: #17252f; font: inherit; background: #fff; border: 1px solid rgba(23,37,47,.15); border-radius: 7px; }
.online-form textarea { min-height: 70px; resize: vertical; }
.online-form button,.online-inline-form button,.online-empty button,.online-admin-row button { min-height: 34px; padding: 0 11px; color: #fff; font: inherit; font-size: 12px; font-weight: 800; background: #2b7a78; border: 0; border-radius: 6px; cursor: pointer; }
.online-form button:disabled { opacity: .45; cursor: not-allowed; }
.online-link-button { color: #2b7a78 !important; background: transparent !important; border: 0 !important; }
.online-help { color: #60717d; font-size: 12px; }
.online-admin-bootstrap { margin-top: 14px; padding: 10px; background: #fff8ed; border: 1px solid rgba(214,90,49,.18); border-radius: 7px; }
.online-admin-bootstrap summary { color: #814112; font-size: 12px; font-weight: 800; cursor: pointer; }
.online-admin-bootstrap .online-form { margin-top: 10px; background: #fff; }
.online-account-summary { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 10px; padding: 16px; background: #f5f9f8; border-radius: 8px; }
.online-account-summary span { color: #60717d; }
.online-quota-card { display: grid; gap: 10px; margin-top: 14px; padding: 14px; background: #f7fbfa; border: 1px solid rgba(43,122,120,.16); border-radius: 8px; }
.online-quota-card h3,.online-quota-card p { margin: 0; }
.online-quota-card p { color: #60717d; font-size: 12px; line-height: 1.6; }
.online-quota-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.online-quota-grid div { display: grid; gap: 3px; padding: 8px; background: #fff; border: 1px solid rgba(23,37,47,.08); border-radius: 6px; }
.online-quota-grid span,.online-quota-grid em { color: #60717d; font-size: 11px; font-style: normal; }
.online-quota-grid strong { color: #2b7a78; font-size: 18px; }
.online-actions { margin-top: 12px; }
.online-actions button { min-height: 34px; color: #8d2f26; font: inherit; font-weight: 800; background: #fff0ed; border: 1px solid rgba(200,61,50,.2); border-radius: 6px; cursor: pointer; }
.online-empty { padding: 30px; text-align: center; background: #f7faf9; border-radius: 8px; }
.online-membership-status { display: grid; gap: 5px; margin-bottom: 12px; padding: 12px; background: #eef8f6; border-left: 3px solid #2b7a78; }
.online-membership-status span { color: #60717d; font-size: 12px; }
.online-inline-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-bottom: 12px; }
.online-inline-form label { display: grid; gap: 4px; color: #39515a; font-size: 12px; font-weight: 700; }
.online-price { display: flex; align-items: baseline; gap: 8px; }
.online-price strong { color: #d65a31; font-size: 28px; }
.online-price em { color: #60717d; font-size: 12px; font-style: normal; }
.online-payment-list { display: flex; flex-wrap: wrap; gap: 10px; }
.online-pay-choice { display: grid !important; grid-template-columns: auto auto; align-items: center; gap: 6px !important; padding: 8px; background: #fff; border: 1px solid rgba(23,37,47,.1); border-radius: 7px; }
.online-pay-choice input { width: auto; min-height: 0; }
.online-pay-choice img { grid-column: 1 / -1; width: 150px; max-height: 190px; object-fit: contain; }
.online-order-created { margin-top: 10px; padding: 12px; background: #fff8ed; border: 1px solid rgba(214,90,49,.18); border-radius: 7px; }
.online-order-created img { display: block; width: min(220px,100%); max-height: 260px; margin: 10px 0; object-fit: contain; background: #fff; }
.online-order-created button { min-height: 36px; padding: 0 12px; color: #fff; font: inherit; font-weight: 800; background: #2b7a78; border: 0; border-radius: 6px; cursor: pointer; }
.online-order-history { margin-top: 16px; }
.online-order-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(23,37,47,.08); font-size: 12px; }
.online-switches { display: flex; flex-wrap: wrap; gap: 12px; }
.online-switches label { display: inline-flex; grid-auto-flow: column; align-items: center; justify-content: flex-start; }
.online-switches input { width: auto; min-height: 0; }
.online-switches .is-danger { color: #9a3228; }
.online-admin-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(23,37,47,.12); }
.online-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(23,37,47,.07); font-size: 12px; }
.online-admin-row > div { display: flex; flex-wrap: wrap; gap: 5px; }
.online-admin-row button { min-height: 28px; }
.online-admin-row button:nth-child(2) { background: #d65a31; }
.online-notice { margin-bottom: 10px; padding: 9px 10px; color: #24434b; background: #edf8f5; border-radius: 6px; }
.online-notice--error { color: #8d2f26; background: #fff0ed; }
.online-notice--success { color: #245d47; background: #edf8f0; }
.online-form pre { max-height: 180px; overflow: auto; margin: 0; padding: 9px; background: #fff; border-radius: 6px; }

.online-maintenance { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: #eef4f5; }
.online-maintenance section { width: min(440px,calc(100vw - 30px)); padding: 28px; text-align: center; background: #fff; border: 1px solid rgba(23,37,47,.12); border-radius: 8px; box-shadow: 0 24px 70px rgba(34,55,67,.2); }
.online-maintenance strong { font-size: 22px; }
.online-maintenance p { color: #60717d; line-height: 1.7; }
.online-maintenance button { min-height: 36px; color: #fff; font: inherit; font-weight: 800; background: #2b7a78; border: 0; border-radius: 7px; cursor: pointer; }

@media (max-width: 680px) {
  .online-account-button { min-width: 72px; font-size: 11px; }
  .online-auth-grid,.online-admin-grid,.online-form-grid { grid-template-columns: 1fr; }
  .online-quota-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .online-modal { padding: 0; }
  .online-modal__panel { width: 100vw; max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .online-inline-form { grid-template-columns: 1fr; }
  .online-admin-row { align-items: flex-start; flex-direction: column; }
}
