/* =========================================================
   INSUNG KOREAN MEDICINE CLINIC - DIET PRICE v1.0.1 POLISH
   Font policy: use only Pretendard already served from /theme/inet/fonts/
   ========================================================= */
#insungDietPrice,
#insungDietPrice button,
#insungDietPrice input,
#insungDietPrice select,
#insungDietPrice textarea {
    font-family: 'Pretendard', sans-serif;
}

#insungDietPrice { color: #4d443f; background: #fff; }
#insungDietPrice * { box-sizing: border-box; }
#insungDietPrice .ia-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.idp-intro { padding: 86px 0 78px; background: #fbf8f4; border-bottom: 1px solid #eee4dc; }
.idp-intro-box { max-width: 900px; margin: 0 auto; text-align: center; }
.idp-main-title { margin: 13px 0 20px; color: #332c28; font-size: 46px; font-weight: 500; line-height: 1.32; letter-spacing: normal; }
.idp-main-title strong { color: #785e4c; font-weight: 700; }
.idp-lead { margin: 0 auto; max-width: 680px; color: #746962; font-size: 17px; font-weight: 400; line-height: 1.82; word-break: keep-all; }
.idp-anchor-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 660px; margin: 32px auto 0; }
.idp-anchor-nav a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border: 1px solid #d7c7ba; background: #fff; color: #6e584b; font-size: 15px; font-weight: 600; text-decoration: none; transition: .2s ease; }
.idp-anchor-nav a:hover { border-color: #a98770; background: #f5ede7; color: #513f34; }

.idp-section { padding: 88px 0; }
.idp-section:nth-of-type(even) { background: #fff; }
.idp-title { margin: 11px 0 22px; color: #332c28; font-size: 40px; font-weight: 500; line-height: 1.34; letter-spacing: normal; }
.idp-title strong { color: #785e4c; font-weight: 700; }
.idp-desc { margin: 0; color: #746962; font-size: 17px; font-weight: 400; line-height: 1.82; word-break: keep-all; }
.idp-section-head { max-width: 820px; margin-bottom: 42px; }

.idp-banban { background: #fff; }
.idp-split { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 64px; align-items: center; }
.idp-price-main { display: flex; align-items: baseline; gap: 14px; margin-top: 30px; padding-top: 28px; border-top: 1px solid #e4d8cf; }
.idp-price-main > span { color: #887970; font-size: 17px; font-weight: 600; }
.idp-price-main strong { color: #4f4139; font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.idp-price-main strong span { margin-left: 2px; font-size: 18px; font-weight: 600; }
.idp-price-main strong em { margin: 0 5px; color: #aa9586; font-size: 24px; font-style: normal; font-weight: 500; }
.idp-benefit { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 22px; padding: 18px 20px; background: #f6eee7; border-left: 3px solid #a87a5e; }
.idp-benefit span { color: #8c7363; font-size: 14px; font-weight: 700; }
.idp-benefit strong { color: #5a4639; font-size: 17px; font-weight: 700; }
.idp-recommend { padding: 36px; border: 1px solid #e5d9cf; background: #fbf8f5; }
.idp-mini-head span { display: block; margin-bottom: 6px; color: #aa8a76; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.idp-mini-head h3 { margin: 0; color: #4e423b; font-size: 24px; font-weight: 700; line-height: 1.4; }
.idp-recommend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.idp-recommend-grid article { position: relative; min-height: 130px; padding: 23px 20px 20px; background: #fff; border: 1px solid #eadfd7; }
.idp-recommend-grid article span { display: block; margin-bottom: 12px; color: #b2907a; font-size: 12px; font-weight: 800; }
.idp-recommend-grid article p { margin: 0; color: #5d514a; font-size: 16px; font-weight: 500; line-height: 1.65; word-break: keep-all; }

.idp-injection { background: #f8f4ef; }
.idp-dose-card { padding: 30px; background: #fff; border: 1px solid #e1d5cb; }
.idp-dose-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.idp-dose-title strong { color: #54473f; font-size: 19px; font-weight: 700; }
.idp-dose-title span { color: #8c7769; font-size: 14px; font-weight: 600; }
.idp-table-scroll { overflow-x: auto; }
.idp-dose-table { width: 100%; min-width: 540px; border-collapse: collapse; table-layout: fixed; }
.idp-dose-table th, .idp-dose-table td { padding: 17px 14px; border: 1px solid #ded5ce; text-align: center; font-size: 16px; line-height: 1.5; }
.idp-dose-table thead th { background: #eadbcf; color: #5b493e; font-weight: 700; }
.idp-dose-table tbody th { background: #fbf8f5; color: #6c5b50; font-weight: 700; }
.idp-dose-table td { color: #4f4742; font-weight: 600; background: #fff; }
.idp-price-groups { display: grid; gap: 18px; margin-top: 28px; }
.idp-price-group { padding: 28px 30px 30px; border: 1px solid #e2d6cc; background: #fff; }
.idp-price-group--six { border-color: #dccbbd; background: #fcf8f4; }
.idp-price-group--ten { border-color: #cdb5a2; background: #f8f1eb; }
.idp-price-group-head { display: flex; align-items: center; gap: 13px; margin-bottom: 23px; }
.idp-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 31px; padding: 0 11px; background: #8c6b56; color: #fff; font-size: 13px; font-weight: 700; }
.idp-price-group-head h3 { margin: 0; color: #4f433c; font-size: 22px; font-weight: 700; line-height: 1.4; }
.idp-price-group-head h3 small { color: #9a887c; font-size: 14px; font-weight: 500; }
.idp-rate-grid { display: grid; gap: 10px; }
.idp-rate-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.idp-rate-grid > div { min-height: 126px; padding: 22px 20px; border: 1px solid #ece3dc; background: #fbf9f7; }
.idp-rate-grid > div > span { display: block; color: #8e796c; font-size: 14px; font-weight: 700; }
.idp-rate-grid strong { display: block; margin-top: 7px; color: #413833; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.idp-rate-grid strong small { margin-left: 2px; font-size: 14px; font-weight: 500; }
.idp-rate-grid em { display: block; margin-top: 8px; color: #8f7d72; font-size: 14px; font-style: normal; font-weight: 500; line-height: 1.5; }
.idp-rate-grid em b { display: inline-block; margin-left: 5px; padding: 3px 7px; border: 1px solid #d7c3b4; background: #fff; color: #8a644e; font-size: 13px; font-weight: 700; line-height: 1.3; vertical-align: 1px; }

.idp-packages { background: #fff; }
.idp-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.idp-package-card { position: relative; display: flex; flex-direction: column; min-height: 520px; padding: 33px 28px 30px; border: 1px solid #ded2c9; background: #fff; box-shadow: 0 10px 28px rgba(70, 52, 41, .045); }
.idp-package-card--recommended { border: 2px solid #9b7157; background: #fbf5f0; box-shadow: 0 16px 34px rgba(92, 63, 46, .10); transform: translateY(-8px); }
.idp-package-ribbon { position: absolute; top: -15px; left: 24px; padding: 7px 13px; background: #7f5b46; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.idp-package-top span { display: block; color: #ad8d79; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.idp-package-top strong { display: block; margin-top: 5px; color: #785e4c; font-size: 20px; font-weight: 700; }
.idp-package-card h3 { margin: 22px 0 15px; color: #403833; font-size: 25px; font-weight: 700; line-height: 1.42; }
.idp-package-note { min-height: 58px; margin: 0; color: #746861; font-size: 15px; font-weight: 500; line-height: 1.65; }
.idp-package-lines { margin: 28px 0 0; padding: 22px 0; border-top: 1px solid #e8ddd5; border-bottom: 1px solid #e8ddd5; }
.idp-package-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.idp-package-lines dt { color: #6b5d54; font-size: 14px; font-weight: 600; }
.idp-package-lines dd { margin: 0; color: #4b413b; font-size: 15px; font-weight: 700; white-space: nowrap; }
.idp-package-total { margin-top: auto; padding-top: 25px; text-align: right; }
.idp-package-total del { display: block; color: #aaa09a; font-size: 15px; font-weight: 500; }
.idp-package-total span { display: block; margin-top: 7px; color: #a36c4b; font-size: 14px; font-weight: 700; }
.idp-package-total strong { display: block; margin-top: 2px; color: #5b4436; font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.idp-package-total strong small { font-size: 15px; font-weight: 500; }

.idp-notice { padding: 0 0 76px; background: #fff; }
.idp-notice-box { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px 30px; border: 1px solid #dfd3ca; background: #faf7f4; }
.idp-notice-box > span { color: #9c7b66; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.idp-notice-box p { margin: 0; color: #665950; font-size: 16px; font-weight: 500; line-height: 1.75; word-break: keep-all; }
.idp-notice-box p strong { color: #524239; font-weight: 700; }
.idp-consult { padding-top: 86px; }

@media (max-width: 1199px) {
    #insungDietPrice .ia-wrap { width: min(100% - 40px, 1080px); }
    .idp-main-title { font-size: 40px; }
    .idp-title { font-size: 36px; }
    .idp-split { gap: 42px; }
    .idp-package-card { padding-left: 22px; padding-right: 22px; }
    .idp-package-card h3 { font-size: 22px; }
    .idp-package-total strong { font-size: 31px; }
}

@media (max-width: 900px) {
    .idp-intro { padding: 72px 0 66px; }
    .idp-section { padding: 74px 0; }
    .idp-split { grid-template-columns: 1fr; gap: 34px; }
    .idp-recommend { padding: 28px; }
    .idp-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .idp-package-card--recommended { order: -1; transform: none; }
    .idp-package-card--basic { grid-column: 1 / -1; min-height: 0; }
    .idp-rate-grid strong { font-size: 25px; }
    .idp-notice { padding-bottom: 66px; }
}

@media (max-width: 640px) {
    #insungDietPrice .ia-wrap { width: calc(100% - 28px); }
    .idp-intro { padding: 58px 0 54px; }
    .idp-main-title { margin-top: 9px; font-size: 31px; line-height: 1.38; }
    .idp-lead { font-size: 16px; line-height: 1.8; }
    .idp-anchor-nav { gap: 6px; margin-top: 25px; }
    .idp-anchor-nav a { min-height: 44px; padding: 9px 5px; font-size: 13px; }
    .idp-section { padding: 62px 0; }
    .idp-title { margin-top: 8px; font-size: 28px; line-height: 1.4; }
    .idp-desc { font-size: 16px; line-height: 1.8; }
    .idp-section-head { margin-bottom: 30px; }
    .idp-price-main { gap: 10px; margin-top: 24px; padding-top: 22px; }
    .idp-price-main strong { font-size: 32px; }
    .idp-price-main strong span { font-size: 16px; }
    .idp-price-main strong em { font-size: 19px; }
    .idp-benefit { align-items: flex-start; flex-direction: column; padding: 16px; }
    .idp-benefit strong { font-size: 16px; }
    .idp-recommend { padding: 22px 18px; }
    .idp-mini-head h3 { font-size: 21px; }
    .idp-recommend-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
    .idp-recommend-grid article { min-height: 0; padding: 18px 17px; }
    .idp-recommend-grid article span { margin-bottom: 7px; }
    .idp-recommend-grid article p { font-size: 16px; }
    .idp-dose-card { padding: 20px 16px; }
    .idp-dose-title { align-items: flex-start; flex-direction: column; gap: 5px; }
    .idp-dose-table th, .idp-dose-table td { padding: 14px 10px; font-size: 15.5px; }
    .idp-price-group { padding: 22px 16px 20px; }
    .idp-price-group-head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 17px; }
    .idp-price-group-head h3 { font-size: 19px; }
    .idp-rate-grid--three { grid-template-columns: 1fr; gap: 8px; }
    .idp-rate-grid > div { min-height: 0; padding: 18px; }
    .idp-rate-grid strong { font-size: 27px; }
    .idp-rate-grid em { font-size: 15px; }
    .idp-rate-grid em b { margin-top: 6px; margin-left: 0; font-size: 13.5px; }
    .idp-package-grid { grid-template-columns: 1fr; }
    .idp-package-card, .idp-package-card--basic { grid-column: auto; min-height: 0; padding: 29px 22px 26px; }
    .idp-package-card--recommended { order: -1; }
    .idp-package-card h3 { font-size: 23px; }
    .idp-package-note { min-height: 0; font-size: 16px; }
    .idp-package-lines dt, .idp-package-lines dd { font-size: 15px; }
    .idp-package-total strong { font-size: 31px; }
    .idp-notice { padding-bottom: 54px; }
    .idp-notice-box { grid-template-columns: 1fr; gap: 8px; padding: 21px 18px; }
    .idp-notice-box p { font-size: 16px; }
    .idp-consult { padding-top: 72px; }
}

@media (max-width: 420px) {
    #insungDietPrice .ia-wrap { width: calc(100% - 22px); }
    .idp-anchor-nav a { font-size: 12px; letter-spacing: -.03em; }
    .idp-price-main strong { font-size: 29px; }
    .idp-price-main strong span { font-size: 15px; }
    .idp-dose-table { min-width: 500px; }
    .idp-package-card { padding-left: 18px; padding-right: 18px; }
    .idp-package-lines div { align-items: flex-start; flex-direction: column; gap: 3px; }
    .idp-package-lines dd { white-space: normal; }
}

/* v1.0.2 CLIENT REQUEST : DISCOUNT VISIBILITY */
.idp-rate-grid em b {
    margin-left: 7px;
    padding: 5px 9px;
    border: 1px solid #8f674e;
    border-radius: 999px;
    background: #8f674e;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 3px 8px rgba(102, 73, 55, .12);
}
.idp-price-group--ten .idp-rate-grid em b {
    border-color: #77513d;
    background: #77513d;
}
.idp-package-total span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    margin-top: 8px;
    padding: 5px 11px;
    border: 1px solid #9a6a4d;
    border-radius: 999px;
    background: #9a6a4d;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
}
.idp-package-card--recommended .idp-package-total span {
    border-color: #7f5843;
    background: #7f5843;
}
@media (max-width: 640px) {
    .idp-rate-grid em b { margin-top: 7px; margin-left: 0; padding: 5px 9px; font-size: 13.5px; }
    .idp-package-total span { min-height: 30px; padding: 5px 11px; font-size: 14px; }
}


/* v1.0.3 FINAL QA POLISH : DISCOUNT ALIGNMENT / PRICE RHYTHM */
.idp-rate-grid em{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.idp-rate-grid em b{display:inline-flex;align-items:center;justify-content:center;margin-left:0;white-space:nowrap}
.idp-package-total{display:flex;flex-direction:column;align-items:flex-start}
.idp-package-total span{white-space:nowrap}
@media(max-width:640px){
    .idp-rate-grid em{justify-content:flex-start;gap:6px}
    .idp-rate-grid em b{margin-top:0}
    .idp-package-total{align-items:flex-start}
}
