.restricted-page {
  background: #0d1e2e;
  color: #d0e5f1;
}

.restricted-shell,
.restricted-wrap {
  margin: 0 auto;
  max-width: 980px;
  padding: 5.5em 1.5em 4em;
}

.restricted-wrap {
  max-width: 34rem;
}

.restricted-top {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5em;
}

.restricted-top h1,
.restricted-wrap h1 {
  color: #ffffff;
  font-family: "Cinzel", serif;
  margin: 0;
}

.restricted-top a,
.restricted-panel a {
  color: #d0e5f1;
}

.restricted-panel {
  background: #ffffff;
  border: 1px solid rgba(7, 31, 61, 0.14);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 31, 61, 0.08);
  color: #253b54;
  padding: 1.5em;
}

.restricted-panel h2,
.restricted-panel h3,
.restricted-panel legend,
.restricted-panel label {
  color: #071f3d;
}

.restricted-panel h2,
.restricted-panel legend {
  font-family: "Cinzel", serif;
}

.restricted-panel p {
  color: #253b54;
}

.restricted-priority-links {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0;
}

.restricted-panel .restricted-priority-links a {
  background: #f7fafc;
  border: 1px solid rgba(7, 31, 61, 0.18);
  border-left: 4px solid #b49352;
  border-radius: 6px;
  color: #071f3d;
  display: block;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.85rem 1rem;
  text-decoration: none;
}

.restricted-panel .restricted-priority-links a:hover,
.restricted-panel .restricted-priority-links a:focus {
  background: #071f3d;
  border-color: #071f3d;
  color: #ffffff;
}

.restricted-panel .products-toolbar {
  margin-top: 1.5em;
}

.restricted-panel #private-product-search {
  background: #f8fbff;
  border: 1px solid #9eb5cf;
  color: #071f3d !important;
}

.restricted-panel #private-product-search::placeholder {
  color: #58718e;
}

.restricted-panel .product-detail-inner {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
}

.restricted-panel .product-detail-media-view {
  background: #ece8df;
  border-radius: 8px;
  overflow: hidden;
}

.restricted-panel .product-detail-media-view img,
.restricted-panel .product-detail-media-view video {
  display: block;
  max-height: 70vh;
  object-fit: contain;
  width: 100%;
}

.restricted-panel .product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.restricted-panel .product-thumb {
  background: #ffffff;
  border: 1px solid #6d87a5;
  border-radius: 6px;
  color: #071f3d !important;
  cursor: pointer;
  height: 4.25rem;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  width: 4.25rem;
}

.restricted-panel .product-thumb.is-active {
  border-color: #071f3d;
  box-shadow: 0 0 0 2px #071f3d;
}

.restricted-panel .product-thumb-video {
  align-items: center;
  display: flex;
  font-size: 0.8rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  text-align: center;
}

.restricted-panel .product-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.restricted-panel .private-documents {
  margin-top: 1.5rem;
}

.restricted-panel .private-documents h4 {
  color: #071f3d;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.restricted-panel .private-documents ul {
  color: #0f52ba;
  margin: 0;
  padding-left: 1.25rem;
}

.restricted-panel .private-documents li {
  color: #0f52ba;
  margin: 0.35rem 0;
}

.restricted-panel .private-documents a {
  color: #0f52ba;
  font-weight: 500;
  text-decoration: none;
}

.restricted-panel .private-documents a:hover,
.restricted-panel .private-documents a:focus {
  color: #ffb700;
}

.restricted-panel .cart-panel {
  background: #fbfaf7;
  border: 1px solid rgba(32, 43, 56, 0.14);
  color: #26323d;
}

.restricted-panel .cart-panel h3 {
  color: #071f3d;
  font-weight: 700;
}

.restricted-panel .cart-panel p {
  color: #344451;
}

.restricted-panel .cart-item strong {
  color: #18232d;
  display: block;
}

.restricted-panel .cart-item .product-meta {
  color: #687583;
}

.restricted-panel .empty-cart {
  color: #687583;
}

.restricted-panel .cart-item .button {
  box-shadow: inset 0 0 0 2px #071f3d;
  color: #071f3d;
}

.restricted-panel .cart-item .button:hover,
.restricted-panel .cart-item .button:focus {
  background: #071f3d;
  color: #ffffff;
}

.restricted-panel .inquiry-panel h3 {
  color: #071f3d;
  font-weight: 700;
}

.restricted-panel .inquiry-panel input[type="text"],
.restricted-panel .inquiry-panel input[type="email"],
.restricted-panel .inquiry-panel input[type="tel"],
.restricted-panel .inquiry-panel textarea {
  background: #ffffff;
  border: 1px solid #6d87a5;
  color: #1e2a35;
}

.restricted-panel .inquiry-panel input[type="text"]:focus,
.restricted-panel .inquiry-panel input[type="email"]:focus,
.restricted-panel .inquiry-panel input[type="tel"]:focus,
.restricted-panel .inquiry-panel textarea:focus {
  border-color: #071f3d;
  box-shadow: 0 0 0 1px #071f3d;
}

.restricted-panel .inquiry-panel input::placeholder,
.restricted-panel .inquiry-panel textarea::placeholder {
  color: #58718e !important;
  opacity: 1;
}

.restricted-login-panel {
  background: #ffffff;
  border: 1px solid rgba(7, 31, 61, 0.14);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 31, 61, 0.08);
  padding: 1.5em;
}

.restricted-login-panel h1 {
  color: #071f3d;
}

.restricted-notice {
  color: #176b3a;
}

.restricted-error {
  color: #b40000;
  margin-bottom: 1em;
}

.restricted-join-prompt {
  color: #243a54;
  margin: 1.6em 0 0.65em;
}

.restricted-login-panel .restricted-join-link {
  display: inline-block;
  margin: 0;
}

.restricted-panel fieldset {
  border: 1px solid rgba(7, 31, 61, 0.14);
  border-radius: 8px;
  margin: 0 0 1.5em;
  padding: 1.2em;
}

.restricted-panel label,
.restricted-login-panel label {
  color: #071f3d;
  display: block;
  font-weight: 700;
  margin: 1rem 0 0.35rem;
}

.restricted-panel input[type="text"],
.restricted-panel input[type="email"],
.restricted-panel input[type="tel"],
.restricted-panel input[type="date"],
.restricted-panel input[type="password"],
.restricted-panel select,
.restricted-panel textarea,
.restricted-login-panel input[type="text"],
.restricted-login-panel input[type="password"] {
  background: #f8fbff;
  border: 1px solid #9eb5cf;
  color: #071f3d;
}

.restricted-panel select option {
  background: #ffffff;
  color: #071f3d;
}

.restricted-panel select {
  background-color: #f8fbff;
  background-image:
    linear-gradient(45deg, transparent 50%, #071f3d 50%),
    linear-gradient(135deg, #071f3d 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.8rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  padding-right: 2.4rem;
}

.restricted-panel select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, #b49352 50%),
    linear-gradient(135deg, #b49352 50%, transparent 50%);
}

.restricted-panel input::placeholder,
.restricted-panel textarea::placeholder,
.restricted-login-panel input::placeholder {
  color: #58718e !important;
  opacity: 1;
}

.profile-grid {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-full {
  grid-column: 1 / -1;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  margin-top: 0.75rem;
}

.choice-row label {
  align-items: flex-start;
  color: #243a54;
  display: inline-flex;
  font-weight: 400;
  gap: 0.55em;
  margin: 0;
  padding: 0;
  position: static;
}

.choice-row label:before,
.choice-row input[type="checkbox"] + span:before {
  content: none !important;
  display: none !important;
}

.choice-row input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  display: inline-block !important;
  flex: 0 0 auto;
  height: 1.1em;
  margin: 0.18em 0 0 !important;
  opacity: 1 !important;
  position: static !important;
  width: 1.1em;
  z-index: auto !important;
}

.restricted-actions {
  margin-top: 1.3em;
  text-align: left;
}

.restricted-actions input,
.restricted-actions .button {
  margin-left: 0;
  margin-right: 0.75em;
}

.restricted-panel .button,
.restricted-login-panel .button {
  box-shadow: inset 0 0 0 2px #071f3d;
  color: #071f3d;
}

.restricted-panel input[type="submit"].special,
.restricted-login-panel input[type="submit"].special {
  background: #071f3d;
  box-shadow: inset 0 0 0 2px #071f3d;
  color: #ffffff;
}

.restricted-panel input[type="submit"].special:hover,
.restricted-login-panel input[type="submit"].special:hover {
  background: #123b66;
  color: #ffffff;
}

@media screen and (max-width: 760px) {
  .restricted-shell,
  .restricted-wrap {
    padding: 4.5em 1em 3em;
  }

  .restricted-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .restricted-panel .product-detail-inner {
    grid-template-columns: 1fr;
  }
}
