/* Legacy design: only structurally classified elements. No article/tab registries. */
#body_wrap .post_content [data-oyanavi-design-root="legacy"] > br,
#body_wrap .post_content [data-oyanavi-design-list="tabs"] > br,
#body_wrap .post_content [data-oyanavi-design-body="standard"] > br {
  display: none;
}
#body_wrap .post_content [data-oyanavi-design-list="tabs"] {
  display:flex; flex-wrap:wrap; align-items:stretch; gap:8px;
  --the-tab-margin:0 0 12px;
  margin:0 0 12px; padding:0; border:0; list-style:none;
}
#body_wrap .post_content [data-oyanavi-design-list="tabs"] > [data-oyanavi-design-item="tab"] {
  flex:1 1 0; min-width:0; margin:0; padding:0; border:0; list-style:none;
  background:transparent !important;
}
#body_wrap .post_content [data-oyanavi-design-tab="standard"] {
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;min-height:52px;padding:12px 16px;
  border:1px solid #bbcfc7;border-radius:6px;background:#EAF5F4;color:#123E46;
  font-size:16px;font-weight:700;line-height:1.5;text-align:center;
  white-space:normal;overflow-wrap:anywhere;opacity:1;box-shadow:none;cursor:pointer;
}
#body_wrap .post_content [data-oyanavi-design-tab="standard"][aria-selected="true"] {
  background:#123E46;border-color:#123E46;color:#fff;
}
#body_wrap .post_content [data-oyanavi-design-tab="standard"]:focus-visible,
#body_wrap .post_content [data-oyanavi-design-link="standard"]:focus-visible {
  position:relative;z-index:1;outline:3px solid #B48A2C;outline-offset:3px;
}
#body_wrap .post_content [data-oyanavi-design-body="standard"] {
  margin:0;padding:clamp(16px,2vw,24px);border:1px solid #DCEBE9;border-radius:6px;background:#fff;
}
#body_wrap .post_content [data-oyanavi-design-panel="standard"] {
  padding:0;background-color:#fff !important;
}
#body_wrap .post_content [data-oyanavi-design-box="plain"] {
  border:0 !important;margin:0 !important;
}
#body_wrap .post_content [data-oyanavi-design-box="plain"] > .st-in-mybox {
  padding:0;line-height:1.8;
}
#body_wrap .post_content .st-tabs[data-oyanavi-design-root="legacy"]:not([style*="margin"]) {
  margin-top:24px !important;margin-bottom:36px !important;
}
/* Only ordinary shop information. Keep saved widths, layout and cell structure. */
#body_wrap .post_content table[data-oyanavi-design-table="shop"] {
  border-collapse:collapse;border:1px solid #DCEBE9 !important;background:#fff !important;
}
#body_wrap .post_content table[data-oyanavi-design-table="shop"] :is(thead,tbody,tfoot,tr,td,th) {
  background:#fff !important;
}
#body_wrap .post_content table[data-oyanavi-design-table="shop"] :is(td,th) {
  border:1px solid #DCEBE9 !important;padding:10px 12px !important;
}
#body_wrap .post_content table[data-oyanavi-design-table="shop"] [data-oyanavi-design-text="legacy-small"] {
  font-size:inherit !important;
}
/* Classified old buttons only. SWELL and unknown custom buttons never receive these attributes. */
#body_wrap .post_content .st-mybtn[data-oyanavi-design-button="standard"],
#body_wrap .post_content [data-oyanavi-design-button-shell="standard"] {
  box-sizing:border-box;display:block;width:100% !important;min-width:0 !important;max-width:100%;
  margin:0 !important;padding:0;border:0 !important;border-radius:6px !important;box-shadow:none !important;
}
#body_wrap .post_content .st-mybtn[data-oyanavi-design-button="standard"] > a[data-oyanavi-design-link="standard"] {
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:.25em;
  width:100%;min-height:52px;margin:0;padding:12px 20px;
  background:#D96545 !important;color:#fff !important;border:0;border-radius:6px !important;box-shadow:none !important;
  font-size:16px;font-weight:700 !important;line-height:1.6;text-align:center;text-decoration:none;
  white-space:normal;overflow-wrap:anywhere;opacity:1;
}
#body_wrap .post_content [data-oyanavi-design-link="standard"] > :is(i,.st-mybtn-text) {
  position:static;margin:0;padding:0;line-height:inherit;
}
#body_wrap .post_content [data-oyanavi-design-gap="14"][data-oyanavi-design-gap="14"] {
  margin-top:14px !important;
}
#body_wrap .post_content [data-oyanavi-design-button-group="stack"] {
  display:grid;gap:14px;
}
#body_wrap .post_content [data-oyanavi-design-spacer="button"] {display:none;}
@media (hover:hover) {
  #body_wrap .post_content .st-mybtn[data-oyanavi-design-button="standard"] > a[data-oyanavi-design-link="standard"]:hover {
    background:#B84D31 !important;
  }
}
@media (max-width:599px) {
  #body_wrap .post_content [data-oyanavi-design-list="tabs"]:has(> [data-oyanavi-design-item="tab"]:nth-of-type(4)):not(:has(> [data-oyanavi-design-item="tab"]:nth-of-type(5))) {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;
  }
  #body_wrap .post_content table[data-oyanavi-design-table="shop"] :is(td,th) {padding:8px !important;}
}
