.ote-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.ote-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 24px;
  margin: 22px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.ote-card h2,
.ote-card h3 {
  margin: 0 0 12px;
  line-height: 1.4;
}

.ote-lead,
.ote-note {
  margin: 0 0 18px;
  color: #555;
}

.ote-field {
  margin: 16px 0;
}

.ote-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.ote-field label span {
  color: #c0392b;
  font-size: .85em;
}

.ote-field input,
.ote-field select,
.ote-field textarea,
.ote-color-search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
  background: #fff;
}

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

.ote-product-summary {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  background: #f8f8f8;
  border-radius: 14px;
  padding: 16px;
  margin-top: 18px;
}

.ote-product-summary p {
  margin: 4px 0;
}

.ote-product-image-wrap {
  background: #fff;
  border-radius: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ote-product-image-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ote-set-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr .8fr auto;
  gap: 12px;
  align-items: end;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.ote-color-field {
  position: relative;
}

.ote-color-suggestions {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.ote-color-option {
  padding: 10px 12px;
  cursor: pointer;
}

.ote-color-option:hover {
  background: #f0f0f0;
}

.ote-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.ote-btn-main {
  width: 100%;
  background: #111;
  color: #fff;
  font-size: 1.05rem;
  padding: 17px 24px;
}

.ote-btn-sub {
  background: #f0f0f0;
  color: #222;
}

.ote-btn-delete {
  background: #fff0f0;
  color: #b00020;
  border: 1px solid #ffd0d0;
  padding: 12px 16px;
}

.ote-total-box {
  margin-top: 18px;
  padding: 16px;
  background: #f6f6f6;
  border-radius: 12px;
}

.ote-warning {
  display: inline-block;
  margin-left: 12px;
  color: #c0392b;
  font-weight: 700;
}

.ote-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ote-check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f8f8;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
}

.ote-message {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.ote-message.is-success {
  background: #eaf8ee;
  color: #187a37;
}

.ote-message.is-error {
  background: #fff0f0;
  color: #b00020;
}

@media (max-width: 700px) {
  .ote-card {
    padding: 18px;
  }

  .ote-grid,
  .ote-product-summary,
  .ote-set-row {
    grid-template-columns: 1fr;
  }

  .ote-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.ote-small-help {
  margin: 8px 0 0;
  color: #666;
  font-size: .9rem;
  line-height: 1.6;
}


.ote-recommend-wrap {
  width: 100%;
}

.ote-recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ote-recommend-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ote-recommend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.ote-recommend-image {
  aspect-ratio: 4 / 3;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ote-recommend-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ote-recommend-body {
  padding: 14px;
}

.ote-recommend-type {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  background: #f0f0f0;
  border-radius: 999px;
  padding: 4px 9px;
  margin-bottom: 8px;
}

.ote-recommend-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.45;
}

.ote-recommend-body p {
  margin: 4px 0;
  font-size: .9rem;
  color: #555;
}

.ote-recommend-empty {
  padding: 16px;
  background: #f7f7f7;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .ote-recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ote-recommend-grid {
    grid-template-columns: 1fr;
  }
}


.ote-recommend-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ote-recommend-body h3 a {
  color: inherit;
  text-decoration: none;
}

.ote-recommend-body h3 a:hover {
  text-decoration: underline;
}

.ote-recommend-comment {
  margin: 8px 0 10px;
  color: #444;
  line-height: 1.6;
  font-size: .92rem;
}

.ote-recommend-spec {
  margin: 10px 0 0;
}

.ote-recommend-spec div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eee;
  padding: 7px 0;
}

.ote-recommend-spec dt {
  font-weight: 700;
  color: #333;
}

.ote-recommend-spec dd {
  margin: 0;
  color: #555;
  text-align: right;
}


.ote-form-toggle {
  margin: 20px 0;
}

.ote-estimate-panel[hidden] {
  display: none !important;
}

.ote-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.ote-form-toggle{cursor:pointer;}


/* v0.1.13 compact recommended products */
.ote-recommend-grid {
  grid-template-columns: repeat(var(--ote-rec-cols, 4), minmax(0, 1fr));
  gap: 12px;
}

.ote-recommend-card {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.035);
}

.ote-recommend-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.07);
}

.ote-recommend-image {
  aspect-ratio: 1 / 1;
  padding: 6px;
}

.ote-recommend-body {
  padding: 10px;
}

.ote-recommend-type {
  display: none !important;
}

.ote-recommend-body h3 {
  margin: 0 0 6px;
  font-size: .92rem;
  line-height: 1.35;
}

.ote-recommend-comment {
  margin: 4px 0 7px;
  font-size: .78rem;
  line-height: 1.45;
  color: #555;
}

.ote-recommend-spec {
  margin: 6px 0 0;
  font-size: .72rem;
}

.ote-recommend-spec div {
  padding: 4px 0;
  gap: 6px;
}

.ote-recommend-spec dt {
  font-size: .72rem;
  font-weight: 700;
}

.ote-recommend-spec dd {
  font-size: .72rem;
}

@media (max-width: 900px) {
  .ote-recommend-grid {
    grid-template-columns: repeat(var(--ote-rec-tablet-cols, 3), minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ote-recommend-grid {
    grid-template-columns: repeat(var(--ote-rec-mobile-cols, 2), minmax(0, 1fr));
    gap: 10px;
  }

  .ote-recommend-body {
    padding: 9px;
  }

  .ote-recommend-body h3 {
    font-size: .86rem;
  }
}


/* v0.1.14: smaller recommendation comment */
.ote-recommend-comment {
  font-size: .68rem !important;
  line-height: 1.35 !important;
  margin: 3px 0 6px !important;
}


.printon-category-products {
  width: 100%;
}


/* v0.1.25 safe mobile UI improvements */
@media (max-width: 700px) {
  .ote-card {
    padding: 16px !important;
    margin: 16px 0 !important;
  }

  .ote-field input,
  .ote-field select,
  .ote-field textarea,
  .ote-color-search {
    min-height: 46px;
    font-size: 16px;
  }

  .ote-btn-main,
  .ote-form-toggle {
    min-height: 54px;
    font-size: 17px;
  }

  .ote-set-row {
    gap: 10px;
  }
}

.ote-qty-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ote-qty-stepper .ote-qty-minus,
.ote-qty-stepper .ote-qty-plus {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.ote-qty-stepper .ote-qty-input {
  text-align: center;
}


/* ===== v0.1.30 UI改善 ===== */
.ote-field {
  margin: 0;
}

.ote-add-set {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.ote-add-set button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  background: #2271b1;
  color: #fff;
  border: none;
  cursor: pointer;
}

.ote-add-set button:hover {
  background: #1a5a91;
}

@media (max-width: 768px) {
  .ote-field input,
  .ote-field select,
  .ote-field textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .ote-add-set button {
    width: 100%;
    font-size: 17px;
  }
}


/* ===== v0.1.31 ボタン中央＆マージン修正 ===== */
.ote-add-set {
  margin-top: 10px !important;
  display: flex !important;
  justify-content: center !important;
  width: 100%;
}

.ote-add-set button {
  display: inline-block;
  min-width: 200px;
}


/* v0.1.33 confirmation modal */
body.ote-modal-open {
  overflow: hidden;
}

.ote-confirm-modal[hidden] {
  display: none !important;
}

.ote-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.ote-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.ote-confirm-dialog {
  position: relative;
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

.ote-confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.ote-confirm-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.ote-confirm-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ote-confirm-content {
  padding: 18px 20px;
}

.ote-confirm-section {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ote-confirm-section:first-child {
  padding-top: 0;
}

.ote-confirm-section h4 {
  margin: 0 0 8px;
  font-size: .95rem;
}

.ote-confirm-section p {
  margin: 0;
  line-height: 1.7;
  color: #333;
}

.ote-confirm-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid #eee;
}

@media (max-width: 640px) {
  .ote-confirm-dialog {
    width: calc(100vw - 18px);
    margin: 9px auto;
    max-height: calc(100vh - 18px);
    border-radius: 14px;
  }

  .ote-confirm-actions {
    flex-direction: column-reverse;
  }

  .ote-confirm-actions .ote-btn {
    width: 100%;
  }
}


/* ===== v0.1.34 ＋セット追加ボタン中央寄せ修正 ===== */
.ote-add-set-wrap {
  width: 100% !important;
  margin-top: 10px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

#ote-add-set,
button#ote-add-set,
.ote-add-set-wrap #ote-add-set {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  min-width: 200px;
  width: auto !important;
  max-width: 100%;
}

/* 念のため旧クラス指定にも対応 */
.ote-add-set {
  margin-top: 10px !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.ote-add-set button {
  margin: 0 auto !important;
}

/* ===== v0.1.55 Category product shortcode restore ===== */
.printon-category-products { width: 100%; margin: 24px 0; }
.printon-category-grid { display: grid; grid-template-columns: repeat(var(--ote-cat-cols, 4), minmax(0, 1fr)); gap: 20px; }
.printon-category-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.printon-category-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.10); }
.printon-category-image-link { display: block; text-decoration: none; }
.printon-category-image { aspect-ratio: 1 / 1; background: #f7f7f7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.printon-category-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.printon-category-noimage { color: #999; font-size: 12px; letter-spacing: .08em; }
.printon-category-body { padding: 14px; }
.printon-category-type { margin: 0 0 6px; font-size: 12px; color: #777; }
.printon-category-body h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.45; }
.printon-category-body h3 a { color: inherit; text-decoration: none; }
.printon-category-comment { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: #555; }
.printon-category-spec { margin: 0 0 12px; display: grid; gap: 6px; }
.printon-category-spec div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.printon-category-spec dt { color: #777; }
.printon-category-spec dd { margin: 0; font-weight: 700; }
.printon-category-button { display: block; text-align: center; padding: 10px 12px; border-radius: 999px; background: #222; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px; }
.printon-category-empty { padding: 16px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; }
@media (max-width: 900px) { .printon-category-grid { grid-template-columns: repeat(var(--ote-cat-tablet-cols, 3), minmax(0, 1fr)); } }
@media (max-width: 600px) { .printon-category-grid { grid-template-columns: repeat(var(--ote-cat-mobile-cols, 2), minmax(0, 1fr)); gap: 12px; } .printon-category-body { padding: 10px; } .printon-category-body h3 { font-size: 14px; } }
