/* Dental Calculator Widget — extracted from calculator.php */
.calc-step{display:none}
.calc-step.active{display:block}
.calc-step__label{font-size:13px;font-weight:600;color:#0b90f4;text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}
.calc-step__title{font-family:'Druk Cyr';font-size:28px;text-transform:uppercase;line-height:1.1;margin:0 0 24px}
.calc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.calc-card__img{width:100%;height:140px;object-fit:cover;object-position:top;border-radius:12px;margin-top:10px}
.calc-cards--small{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.calc-card{background:#f8f9fa;border:2px solid #eee;border-radius:16px;padding:20px;text-align:left;cursor:pointer;transition:border-color 0.2s,box-shadow 0.2s;overflow-wrap:break-word;word-break:break-word;display:flex;flex-direction:column}
.calc-card:hover{border-color:#0b90f4;box-shadow:0 4px 16px rgba(11,144,244,0.1)}
.calc-card--active{border-color:#0b90f4;background:#f0f7ff}
.calc-card--sm{padding:10px 12px}
.calc-card__num{display:inline-block;width:32px;height:32px;line-height:32px;text-align:center;border-radius:50%;background:#0b90f4;color:#fff;font-size:14px;font-weight:700;margin-bottom:8px}
.calc-card__name{display:block;font-size:14px;font-weight:600;color:#292929;margin-bottom:4px}
.calc-card__hint{display:block;font-size:12px;color:#737272;line-height:1.3}
.calc-option-group{margin-bottom:24px}
.calc-option-label{display:block;font-size:16px;font-weight:600;color:#292929;margin-bottom:12px}
.calc-option-label--title{font-size:18px;line-height:1.35;margin-bottom:8px}
.calc-option-subtitle{display:block;font-size:14px;color:#737272;margin-bottom:12px;line-height:1.45}
.calc-select{width:100%;max-width:300px;padding:12px 16px;border:2px solid #eee;border-radius:12px;font-size:16px;background:#f8f9fa;cursor:pointer}
.calc-select:focus{border-color:#0b90f4;outline:none}
.calc-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}
.calc-back{background:none;border:none;color:#0b90f4;font-size:15px;cursor:pointer;padding:8px 0;font-weight:500}
.calc-back:hover{text-decoration:underline}
.calc-next{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border:none;border-radius:14px;background:#0b90f4;color:#fff;font-size:15px;font-weight:700;cursor:pointer;transition:background-color 0.2s ease,opacity 0.2s ease}
.calc-next:hover:not(:disabled){background:#087dd6}
.calc-next:disabled{background:#bfd4e6;color:#fff;cursor:not-allowed;opacity:0.75}
.calc-result__breakdown{background:#f8f9fa;border-radius:16px;padding:24px;margin-bottom:16px}
.calc-result__line{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eee;font-size:16px}
.calc-result__line:last-child{border-bottom:none}
.calc-result__group{background:#f8f9fa;border-radius:16px;padding:20px 24px;margin-bottom:12px;border:1px solid #eee}
.calc-result__group-title{font-size:13px;font-weight:700;color:#0b90f4;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:10px}
.calc-result__total{display:flex;justify-content:space-between;background:#0b90f4;color:#fff;border-radius:16px;padding:20px 24px;font-size:20px;font-weight:700}
.calc-result__note{font-size:14px;color:#737272;margin-top:12px}
.calc-note{margin:20px 0;padding:16px 20px;background:#fff8e1;border-radius:12px;border-left:4px solid #f5a623}
.calc-note p{font-size:14px;color:#666;margin:0}
.tooth-map-layout{display:flex;align-items:stretch;gap:24px;background:#f8f9fa;border:1px solid #eee;border-radius:20px;padding:24px}
.tooth-map-left{flex:0 0 364px;max-width:364px;display:flex;flex-direction:column}
.tooth-map-right{flex:1;min-width:0;display:flex;flex-direction:column;gap:18px}
.tooth-map-right-stack{display:flex;flex-direction:column;gap:20px}
.tooth-map-right .calc-option-group{margin-bottom:0}
.tooth-map-right .calc-select{max-width:none}
.tooth-map-right .calc-cards--small{grid-template-columns:repeat(2,minmax(0,1fr))}
.tooth-map-hint{display:flex;align-items:center;justify-content:center;align-self:flex-start;width:100%;max-width:260px;padding:14px;background:#fff;border:1px solid #e5e7eb;border-radius:16px}
.tooth-map-hint img{display:block;width:100%;max-width:240px;height:auto}
.tooth-map-svg-wrap{margin:0 auto;max-width:364px;width:100%}
.tooth-map-box{position:relative;display:block;width:100%;max-width:364px;margin:0 auto}
.tooth-map-svg-wrap.is-veneer-mode .tooth-map-tooth.is-active{fill:#ef0797;stroke:#b5085f;stroke-width:4.5;filter:drop-shadow(0 0 7px rgba(239,7,151,0.6))}
.tooth-map-svg-wrap.is-veneer-mode .tooth-map-info{background:#fff1f6;border-color:#f6c8da}
@media(max-width:768px){
	.tooth-map-layout{flex-direction:column;align-items:stretch;padding:12px;gap:16px}
	.tooth-map-left{flex-basis:auto;max-width:none;width:100%;display:flex;justify-content:center}
	.tooth-map-right{gap:16px}
	.tooth-map-right-stack{gap:16px}
	.tooth-map-svg-wrap,.tooth-map-box{width:100%;max-width:340px;margin:0 auto}
	.tooth-map-hint{align-self:center;max-width:232px;margin:0 auto}
	.calc-nav .calc-next{width:100%;margin-left:0}
}
.tooth-map-img{width:100%;height:auto;display:block}
.tooth-map-overlay{position:absolute;top:0;left:0;width:100%;height:100%}
.tooth-map-tooth{fill:transparent;stroke:transparent;stroke-width:2.2;stroke-linejoin:round;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill 0.18s ease,stroke 0.18s ease}
.tooth-map-tooth:hover,.tooth-map-tooth:focus-visible{fill:rgba(11,144,244,0.15);stroke:#0b90f4;outline:none}
.tooth-map-tooth.is-active{fill:rgba(11,144,244,0.3);stroke:#0b90f4}
.tooth-map-tooth.is-hint{fill:rgba(228,105,147,0.25);stroke:#d83a72;stroke-width:2;cursor:pointer}
.tooth-map-tooth.is-hint:hover{fill:rgba(228,105,147,0.45);stroke:#c4295f}
.tooth-map-tooth.is-readonly{cursor:default;pointer-events:none;opacity:0.3}
.tooth-map-info{text-align:center;margin-top:12px;font-size:14px;color:#292929;padding:10px 14px;background:#f0f7ff;border-radius:10px;border:1px solid #dbeafe;line-height:1.5}
.calc-result__line-info{display:inline;position:relative;margin-left:6px;cursor:help}
.calc-result__line-info svg{vertical-align:middle;opacity:0.4;transition:opacity 0.2s}
.calc-result__line-info:hover svg{opacity:0.8}
.calc-result__line-info:hover .calc-tip{display:block}
.calc-tip{display:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:#292929;color:#fff;font-size:12px;line-height:1.4;padding:8px 12px;border-radius:8px;width:240px;z-index:10;font-weight:400;box-shadow:0 4px 12px rgba(0,0,0,0.15)}
.calc-tip::after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);border:5px solid transparent;border-top-color:#292929}
.calc-installment{background:#f0f7ff;border:1px solid #dbeafe;border-radius:12px;padding:14px 18px;margin-top:12px}
.calc-installment__title{font-size:13px;font-weight:700;color:#0b90f4;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:6px}
.calc-installment__row{display:flex;justify-content:space-between;font-size:15px;padding:4px 0}
.calc-installment__row span:last-child{font-weight:600}
.calc-installment__badge{display:inline-block;background:#0b90f4;color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:6px;margin-left:8px;vertical-align:middle}
.calc-inline-result{margin-top:24px;animation:calcFadeIn 0.3s ease}
@keyframes calcFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.calc-inline-note{margin:12px 0;padding:12px 16px;background:#fff8e1;border-radius:10px;border-left:3px solid #f5a623;font-size:13px;color:#666}
.calc-inline-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.calc-inline-cta .my-button,.calc-inline-cta .my-button--transparent{display:flex;align-items:center;justify-content:center;text-align:center}
.calc-inline-cta .my-button{background:#0b90f4;color:#fff;border:2px solid #0b90f4}
.calc-inline-cta .my-button:hover{background:#087dd6;border-color:#087dd6;color:#fff}
.calc-inline-cta .my-button--transparent{background:transparent;color:#0b90f4;border:2px solid #0b90f4}
.calc-inline-cta .my-button--transparent:hover{background:#0b90f4;color:#fff}
@media(max-width:768px){.calc-inline-cta{flex-direction:column}.calc-inline-cta .my-button,.calc-inline-cta .my-button--transparent{width:100%}}
.calc-cta{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}
@media(max-width:768px){
	.calc-cards{grid-template-columns:1fr 1fr;gap:10px}
	.calc-cards--small{grid-template-columns:1fr}
	.calc-card{padding:12px}
	.calc-card__img{height:110px;object-position:center 40%}
	.calc-card__name{font-size:13px}
	.calc-card__hint{font-size:11px}
	.calc-step__title{font-size:22px}
	.calc-result__total{font-size:17px;flex-direction:column;gap:4px;text-align:center}
}

/* === Embedded widget overrides === */
.calc-widget .calc-step__title{font-size:22px;margin-bottom:16px}
.calc-widget .calc-card__img{display:none}
.calc-widget .tooth-map-layout{flex-direction:column;padding:12px;gap:16px}
.calc-widget .tooth-map-left{flex-basis:auto;max-width:none}
.calc-widget .tooth-map-svg-wrap,.calc-widget .tooth-map-box{max-width:300px}
.calc-widget .tooth-map-hint{max-width:200px}
.calc-widget .calc-cards{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.calc-widget .calc-cards--small{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}

/* Widget header */
.calc-widget-header{display:flex;align-items:center;gap:14px;margin-bottom:20px;padding-bottom:16px;border-bottom:2px solid #e2e8f0}
.calc-widget-icon{flex-shrink:0}
.calc-widget-heading{font-size:18px;font-weight:700;color:#292929;margin:0 0 2px;line-height:1.3}
.calc-widget-sub{font-size:14px;color:#737272;margin:0;line-height:1.4}
.calc-widget-body{padding:0 4px}
.calc-widget-body.is-open{opacity:1}

/* Wrapper styling */
.art__calc-embed{margin:32px 0;padding:24px;background:#f8fafc;border:2px solid #0b90f4;border-radius:16px}
