/* My orders panel + /track page. Loaded only by index7.php and /track. */

.bp-orders-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bp-orders-panel {
  width: 100%;
}

.bp-orders-col-title {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  text-align: left;
}

.bp-orders-mega-col {
  text-align: left !important;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.bp-orders-mega-col .iconbox,
.bp-orders-mega-col .contents,
.bp-orders-mega-col .bp-orders-mega-form {
  margin-bottom: 0 !important;
}

.bp-orders-mega-col + .bp-orders-mega-col {
  border-left: 1px solid #ededed;
  padding-left: 2.5rem;
}

.bp-orders-mega-form .bp-orders-trust {
  text-align: left;
}

.bp-orders-mega-status {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 32rem;
  text-align: left;
}

.bp-orders-mega-status .bp-track-order-id {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.bp-orders-mega-status .bp-track-status-label {
  font-size: 1rem;
}

.bp-orders-mega-status .status-timeline {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.bp-orders-mega-status .status-step {
  flex: 1 1 0;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
}

.bp-orders-mega-status .status-step.done { background: #22c55e; }
.bp-orders-mega-status .status-step.current { background: #3b82f6; }
.bp-orders-mega-status .status-step.warn { background: #f59e0b; }
.bp-orders-mega-status .status-step.error { background: #ef4444; }

.bp-orders-mega-status .bp-track-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-orders-mega-status .bp-track-ask,
.bp-orders-mega-status .bp-track-link-btn {
  width: 100%;
}

.bp-orders-mega-status .bp-track-stages {
  font-size: 0.625rem;
}

.bp-orders-mega-status .bp-track-meta-card {
  padding: 0.65rem 0.75rem;
}

.bp-orders-mega-status .bp-track-secure {
  padding: 0.85rem 0.9rem;
}

.bp-orders-mega-status .bp-track-secure h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.bp-orders-mega-status .bp-track-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.15rem 0 0;
}

.bp-orders-mega-status .bp-track-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0287ed;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.bp-orders-mega-status .bp-track-back .fa-chevron-left {
  font-size: 0.7em;
  line-height: 1;
}

.bp-orders-mega-status .bp-track-back:hover {
  text-decoration: underline;
}

.bp-orders-mega-status .bp-track-ask-link {
  display: inline;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #0287ed;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.bp-orders-mega-status .bp-track-ask-link:hover {
  text-decoration: underline;
}

.bp-orders-mega-col .bp-orders-mega-status h4 {
  font-size: 1.25rem;
}

.bp-orders-mega-col .bp-orders-mega-status .bp-track-secure h4 {
  font-size: 0.9375rem;
}

.bp-orders-track-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.bp-orders-mega-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 22.5rem;
}

.bp-orders-mega-label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
}

.bp-orders-mega-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 22.5rem;
}

.bp-orders-mega-input {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #1a1a1a;
  outline: none;
}

.bp-orders-mega-input::placeholder {
  color: #9ca3af;
}

.bp-orders-mega-input:focus {
  border-color: #fe516b;
  box-shadow: 0 0 0 3px rgba(254, 81, 107, 0.12);
}

.bp-orders-mega-forgot {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0287ed;
  text-decoration: none;
  white-space: nowrap;
}

.bp-orders-mega-forgot:hover {
  text-decoration: underline;
}

.bp-orders-mega-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.bp-orders-mega-form .login-megamenu-submit {
  width: 100%;
}

.bp-orders-track-submit {
  background: #fff !important;
  color: #737373 !important;
  border: 1px solid #ededed !important;
  box-shadow: none !important;
  height: 3rem;
}

.bp-orders-track-submit .btn-txt {
  color: inherit !important;
}

.bp-orders-track-submit:hover,
.bp-orders-track-submit:focus {
  background: #0287ed !important;
  color: #fff !important;
  border-color: #0287ed !important;
}

.bp-orders-login-submit {
  background: #181b31 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 7.5rem;
  height: 3rem;
}

.bp-orders-login-submit .btn-txt {
  color: #fff !important;
}

.bp-orders-login-submit:hover,
.bp-orders-login-submit:focus {
  background: #111322 !important;
  color: #fff !important;
}

.bp-orders-mega-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.bp-orders-mega-remember span {
  display: block;
  line-height: 1;
}

.bp-orders-mega-checkbox {
  width: 1rem;
  height: 1rem;
  margin: 0 !important;
  padding: 0;
  flex: 0 0 1rem;
  align-self: center;
  accent-color: #fe516b;
  vertical-align: middle;
}

.bp-orders-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.bp-orders-tab {
  flex: 1 1 0;
  margin: 0;
  padding: 0.55rem 0.4rem 0.65rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.bp-orders-tab.is-active {
  color: #1a1a1a;
  border-bottom-color: #fe516b;
}

.bp-orders-tab:focus-visible {
  outline: 2px solid #0287ed;
  outline-offset: 2px;
}

.bp-orders-pane[hidden] {
  display: none !important;
}

.bp-orders-track-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bp-orders-track-form .login-megamenu-label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.bp-orders-track-form .login-megamenu-submit {
  width: 100%;
}

.bp-orders-trust {
  margin: -0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #6b7280;
  text-align: center;
}

.bp-orders-switch {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.bp-orders-switch a,
.bp-orders-ask a {
  color: #0287ed;
  font-weight: 500;
  text-decoration: none;
}

.bp-orders-switch a:hover,
.bp-orders-ask a:hover {
  text-decoration: underline;
}

.bp-orders-ask {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

.bp-orders-error,
.bp-orders-notice {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.bp-orders-error {
  background: #fef2f2;
  color: #991b1b;
}

.bp-orders-notice {
  background: #ecfdf5;
  color: #065f46;
}

@media (min-width: 1200px) {
  body.bp-index7 .main-header,
  body.bp-index7 .mainbar-wrap,
  body.bp-index7 .mainbar-container,
  body.bp-index7 .mainbar-row,
  body.bp-index7 #account-header-collapse,
  body.bp-index7 #account-primary-nav {
    overflow: visible !important;
  }

  body.bp-index7 #account-header-collapse,
  body.bp-index7 #account-primary-nav,
  body.bp-index7 .mainbar-row > .col.text-right {
    position: static !important;
  }

  body.bp-index7 li.bp-orders-nav .megamenu-inner-row {
    border-radius: 0 !important;
  }
}

/* /track page */
body.bp-track-page {
  margin: 0;
  background: #f5f7fb;
  color: #111827;
  font-family: "DM Sans", "Poppins", sans-serif;
}

.bp-track-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.bp-track-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bp-track-header-logo img {
  display: block;
  height: 27px;
  width: auto;
}

.bp-track-header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.bp-track-header-nav a {
  color: #111827;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.bp-track-header-nav a:hover {
  color: #0287ed;
}

.bp-track-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #fe516b, #ff8a3d);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 700;
}

.bp-track-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.bp-track-main h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  line-height: 1.2;
}

.bp-track-lead {
  margin: 0 0 1.5rem;
  color: #6b7280;
  font-size: 1rem;
}

.bp-track-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.bp-track-page .bp-orders-panel {
  max-width: 360px;
}

.bp-track-status {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.bp-track-status-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.bp-track-status-label {
  font-size: 1.125rem;
  font-weight: 700;
}

.bp-track-tone-review { color: #2563eb; }
.bp-track-tone-issue { color: #e11d48; }
.bp-track-tone-hold { color: #b45309; }
.bp-track-tone-success { color: #15803d; }
.bp-track-tone-progress { color: #111827; }

.bp-track-status .status-timeline {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.bp-track-status .status-step {
  flex: 1 1 0;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
}

.bp-track-status .status-step.done { background: #22c55e; }
.bp-track-status .status-step.current { background: #3b82f6; }
.bp-track-status .status-step.warn { background: #f59e0b; }
.bp-track-status .status-step.error { background: #ef4444; }

.bp-track-stages {
  display: flex;
  justify-content: space-between;
  margin-top: -0.35rem;
  font-size: 0.6875rem;
  color: #9ca3af;
}

.bp-track-stages span { flex: 1; text-align: center; }
.bp-track-stages span:first-child { text-align: left; }
.bp-track-stages span:last-child { text-align: right; }

.bp-track-message {
  margin: 0;
  font-size: 0.9375rem;
  color: #374151;
}

.bp-track-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.bp-track-meta-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 0.7rem;
}

.bp-track-meta-card span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.bp-track-meta-card strong {
  font-size: 0.9375rem;
  color: #111827;
}

.bp-track-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bp-track-ask,
.bp-track-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.bp-track-ask {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.bp-track-link-btn {
  width: 100%;
  background: linear-gradient(90deg, #fe516b, #ff8a3d);
  color: #fff;
}

.bp-track-secure {
  padding: 1rem 1.05rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 0.75rem;
}

.bp-track-secure p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #374151;
}

.bp-track-secure h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.bp-track-other {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
}

.bp-track-other a {
  color: #0287ed;
  font-weight: 500;
  text-decoration: none;
}

.bp-track-other a:hover { text-decoration: underline; }

.bp-track-order-id {
  margin: 0 0 0.15rem;
}

.bp-track-429 {
  max-width: 520px;
  margin: 4rem auto;
  padding: 0 1.25rem;
  text-align: center;
}

@media (max-width: 700px) {
  .bp-track-meta { grid-template-columns: 1fr; }
  .bp-track-header-nav a:not(.bp-track-header-cta) { display: none; }
}
