/* Ori-Members frontend baseline */
.om-paywall-teaser { padding: 1rem; border: 1px solid #ddd; background: #fafafa; border-radius: 6px; }
.om-paywall-teaser .button { display: inline-block; padding: .6rem 1rem; text-decoration: none; border: 1px solid #333; border-radius: 4px; }
.om-fav-btn[aria-pressed="true"] { font-weight: bold; }
.om-3ds-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display:none; align-items:center; justify-content:center; }
.om-3ds-modal__content { background: #fff; padding: 1rem 1.25rem; border-radius: 8px; width: 90%; max-width: 480px; }

.om-register-form p,
.om-pre-register-form p { margin: .75rem 0; }

.om-register-form label,
.om-pre-register-form label { display:block; font-weight:600; margin-bottom:.25rem; }

.om-register-form input[type="text"],
.om-register-form input[type="email"],
.om-register-form input[type="password"],
.om-pre-register-form input[type="text"],
.om-pre-register-form input[type="email"],
.om-my-page input[type="search"]{
  width:100%; padding:.5rem .6rem; border:1px solid #cbd5e1; border-radius:4px;
}

.om-card-element{
  border:1px solid #cbd5e1; border-radius:4px; padding:.6rem; margin:.75rem 0 1rem;
}

.om-help { color:#6b7280; font-size:10px; }

.om-msg { margin-top:.75rem; min-height:1.25rem; }

.om-tabs { display:flex; gap:.5rem; margin: 1rem 0; }
.om-tabs button[role="tab"] {
  background:#f3f4f6; border:1px solid #e5e7eb; padding:.4rem .75rem; border-radius:4px; cursor:pointer;
}
.om-tabs button[aria-selected="true"]{ background:#e5e7eb; }

.om-list .om-item{ padding:.75rem 0; border-bottom:1px solid #e5e7eb; }

.om-scrolltop{
  position: fixed; right: 1rem; bottom: 1rem;
  border:1px solid #d1d5db; background:#fff; border-radius:999px; padding:.5rem .7rem;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
}

.om-invoices .om-table { width:100%; border-collapse: collapse; }
.om-invoices .om-table th, .om-invoices .om-table td { border-bottom:1px solid #e5e7eb; padding:.5rem; text-align:left; }
.om-invoices .om-pager { margin-top: .75rem; display:flex; gap:.5rem; }

.om-card-fieldset{
  border:1px solid #e5e7eb; /* gray-200 */
  border-radius:8px;
  padding:12px 14px 14px;
  margin:10px 0 14px;
  background:#fff;
}
.om-card-fieldset > legend{
  font-weight:600;
  padding:0 6px;
}
.om-card-element{
  border:1px solid #d1d5db; /* gray-300 */
  border-radius:6px;
  padding:12px;
  background:#fff;
}
.om-card-error{
  margin-top:8px;
  color:#b91c1c; /* red-700 */
  font-size:.9em;
}

/* My Account: fieldset の枠を消す + 余白調整 */
.om-account fieldset {
  border: 0 !important;
  padding: 0;
  margin: 0 0 1.25rem;
  min-inline-size: auto;
}
.om-account legend {
  border: 0;
  padding: 0;
  margin: 0 0 .75rem;
  font-weight: 600; /* お好みで */
  line-height: 1.4;
}

/* My Page: fieldset の枠を消す（om-my-page / data-om-account でスコープ） */
.om-my-page fieldset,
[data-om-account] fieldset {
  border: 0 !important;
  border-image: initial !important;
  padding: 0 !important;
  margin: 0 0 1.25rem !important;
  min-inline-size: auto !important;
}
.om-my-page legend,
[data-om-account] legend {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 .75rem !important;
  font-weight: 600;
  line-height: 1.4;
}

/* テーマがさらに強い指定をしている場合の保険（フォーム単位で上書き） */
.om-my-page .om-account-form fieldset,
.om-my-page .om-password-form fieldset {
  border: 0 !important;
}
.margin-bottom-100{
  margin-bottom: 100px;
}

.om-basic-view > li{
  display: block;
}
.om-account-form > li{
  display: block;
}
.om-account-row-top{
  border-top: 1px solid #dbdbdb;
}
.om-account-row{
  display: flex;
  width:100%;
  height:50px;
  border-bottom: 1px solid #dbdbdb;
  align-items: center;
}
.om-account-header{
  padding-left: 10px;
  font-weight: bold;
  width:200px;
}
.om-bg-brown{
  background-color: #f7f9fa;
}
.om-account-button-area{
    margin-top: 30px;
}
.om-account-black-button{
  background-color: #333333;
  color: #ffffff;
  border-radius: 5px;
  width:120px;
  height:40px;
  font-weight: bold;
  border: none;
}
.om-account-black-button:hover{
  background-color: #707070;
  cursor: pointer;
  color: #ffffff;
}

.om-account-white-button{
  background-color: #ffffff;
  color: #333333;
  border-radius: 5px;
  width:120px;
  height:40px;
  font-weight: bold;
  border: 1px solid #333333 !important;
}
.om-account-white-button:hover{
  background-color: #f7f9fa;
  cursor: pointer;
}

.om-account-white-button.longer{
  width:215px !important;
}
.om-account-black-button.longer{
  width:215px !important;
}
.om-form-area{
    background:#f4f5f6;
    margin:50px 20px;
    padding:40px 30px;
    border-radius:4px;
}
.om-form-content{
  display:flex;
  flex-direction: column;
  margin-top: 15px;
  margin-bottom: 15px;
}
.om-form{
  height:50px;
  font-size: 14px !important;
}
.om-select {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}
.om-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.om-select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #555;
}
input[type="checkbox"]:checked {
    accent-color: #333333;
}
a.om-link{
  text-decoration: none !important;
  color: #333 !important;
}
a.om-link:hover {
  color: #707070 !important;
}
.list-item{
    width: 20%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:auto;
}
.list-item{
    width: 20%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:auto;
}
.list-row{
    width:100%;
    height:100px;
    display:flex;
    border-bottom:1px solid #ccc;
    text-align: center;
    margin:auto !important;
}
.list-row:nth-child(odd) {
    background: #f7f9fa;
}
.list-row:nth-child(even) {
    background: #ffffff;
}
.font-small{
  font-size: 14px;
}


/* pending modal */
#om-pending-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#om-pending-modal .om-pending-box {
  background: #fff;
  padding: 24px 32px;
  border-radius: 8px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

#om-pending-modal .om-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 4px solid #ddd;
  border-top-color: #666;
  border-radius: 50%;
  animation: om-spin 1s linear infinite;
}

@keyframes om-spin {
  to { transform: rotate(360deg); }
}

#om-pending-modal .om-pending-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

#om-pending-modal .om-pending-text {
  font-size: 14px;
  color: #555;
}

#om-pending-modal .om-pending-cancel {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}


/* モーダル全画面の背景 */
.om-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
/* モーダル表示用の大枠 */
.om-modal-frame {
    position: relative;
    max-width: 1256px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
/* モーダル内部のボックス */
.om-modal-content {
    width: 250px;
    position: absolute;
    top: 140px;
    right: 0px;
    background: #fff;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    border-color: #dbdbdb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding-top: 10px;
}
.om-modal-content::before {
    content: "";
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 12px 24px;
    border-style: solid;
    border-color: transparent transparent #dbdbdb transparent;
}
/* 内側（白い中身） */
.om-modal-content::after {
    content: "";
    position: absolute;
    top: -23px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 11px 23px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}


.om-success {
  color: var(--color-success);
}

.om-error {
  color: var(--color-error);
}

.om-success::before {
    content: "✔ ";
}
.om-error::before {
    content: "✖ ";
}

.om-msg.is-error {
  color: var(--color-error);
}

.om-msg.is-success {
  color: var(--color-success);
}

.om-msg.is-warning {
  color: var(--color-warning);
}

.om-msg.is-info {
  color: var(--color-info);
}