/* Doccure Pharmacy — front end. Builds on the theme's Bootstrap 5 + theme.css tokens (#0E82FD primary). */
.dc-pharmacy { --dc-ph-primary: #0e82fd; --dc-ph-ink: #272b41; --dc-ph-muted: #6b7280; --dc-ph-line: #e6e8ee; }
.dc-ph-small { font-size: 13px; color: #6b7280; }
.dc-ph-muted { color: #6b7280; }
.dc-ph-warn { color: #b45309; }
.dc-ph-ok { color: #15803d; font-weight: 600; font-size: 13px; }
.dc-ph-num { text-align: right; }

.dc-ph-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.dc-ph-badge--success { background: #dcfce7; color: #166534; }
.dc-ph-badge--warning { background: #fef3c7; color: #92400e; }
.dc-ph-badge--danger { background: #fee2e2; color: #991b1b; }
.dc-ph-badge--info { background: #cffafe; color: #155e75; }
.dc-ph-badge--primary { background: #e0efff; color: #0b5ec2; }
.dc-ph-badge--secondary { background: #f1f3f6; color: #374151; }
.dc-ph-badge--dark { background: #374151; color: #fff; }

.dc-ph-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; margin-bottom: 18px; color: #6b7280; }
.dc-ph-crumbs a { color: #4b5563; }
.dc-ph-crumbs a:hover { color: #0e82fd; }

/* Home */
.dc-ph-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 48px 48px 44px; margin-bottom: 0; color: #fff;
	background: radial-gradient(1200px 400px at 85% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(120deg, #0b5ec2 0%, #0e82fd 55%, #38b6ff 100%); box-shadow: 0 24px 48px -24px rgba(14,130,253,.55); }
.dc-ph-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 0%, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%); pointer-events: none; }
.dc-ph-hero__deco { position: absolute; border-radius: 50%; pointer-events: none; }
.dc-ph-hero__deco--1 { width: 340px; height: 340px; right: -120px; bottom: -160px; background: rgba(255,255,255,.08); }
.dc-ph-hero__deco--2 { width: 180px; height: 180px; left: -70px; top: -80px; background: rgba(255,255,255,.07); }
.dc-ph-eyebrow { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 7px 14px; margin-bottom: 16px; backdrop-filter: blur(4px); }
.dc-ph-hero__title { font-size: 44px; line-height: 1.12; font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: -.01em; }
.dc-ph-hero__title span { display: block; color: #d6ecff; }
.dc-ph-hero__lead { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.88); max-width: 560px; margin-bottom: 24px; }
.dc-ph-search { position: relative; display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 6px; max-width: 600px; box-shadow: 0 12px 30px -12px rgba(2,32,71,.45); }
.dc-ph-search__icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 16px; }
.dc-ph-search .form-control { height: 50px; border: 0; padding-left: 44px; box-shadow: none; font-size: 15px; background: transparent; }
.dc-ph-search .form-control:focus { box-shadow: none; }
.dc-ph-search .btn { white-space: nowrap; padding: 0 26px; border-radius: 10px; font-weight: 600; }
.dc-ph-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.8); }
.dc-ph-popular a { color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 12px; transition: background .15s; }
.dc-ph-popular a:hover { background: rgba(255,255,255,.28); color: #fff; }
.dc-ph-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dc-ph-hero__btn { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 600; }
.btn-light.dc-ph-hero__btn { background: #fff; color: #0b5ec2; border-color: #fff; }
.btn-light.dc-ph-hero__btn:hover { background: #eaf4ff; color: #0b5ec2; }
.dc-ph-hero__btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.55); background: transparent; }
.dc-ph-hero__btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.dc-ph-hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.22); }
.dc-ph-hero__stats li { display: flex; flex-direction: column; }
.dc-ph-hero__stats strong { font-size: 24px; line-height: 1.2; font-weight: 700; color: #fff; }
.dc-ph-hero__stats span { font-size: 13px; color: rgba(255,255,255,.78); }
.dc-ph-hero__art { position: relative; height: 420px; }
.dc-ph-hero__circle { position: absolute; top: 50%; left: 52%; width: min(340px, 86%); aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0%, #eaf4ff 55%, #cfe6ff 100%); box-shadow: inset 0 -12px 30px rgba(14,130,253,.18), 0 30px 60px -20px rgba(2,32,71,.5); display: grid; place-items: center; }
.dc-ph-hero__circle svg { width: 78%; height: auto; }
.dc-ph-float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; color: #272b41; border-radius: 14px; padding: 10px 14px; box-shadow: 0 16px 32px -12px rgba(2,32,71,.45); animation: dcPhFloat 6s ease-in-out infinite; }
.dc-ph-float strong { display: block; font-size: 13px; line-height: 1.2; }
.dc-ph-float small { display: block; font-size: 12px; color: #6b7280; }
.dc-ph-float__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; }
.dc-ph-float__icon--green { background: #dcfce7; color: #16a34a; }
.dc-ph-float__icon--blue { background: #e0efff; color: #0e82fd; }
.dc-ph-float__icon--amber { background: #fef3c7; color: #d97706; }
.dc-ph-float--1 { top: 18px; left: -6px; }
.dc-ph-float--2 { bottom: 64px; right: -4px; animation-delay: -2s; }
.dc-ph-float--3 { bottom: 6px; left: 30px; animation-delay: -4s; }
@keyframes dcPhFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .dc-ph-float { animation: none; } }

.dc-ph-steps { list-style: none; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: -28px 40px 48px; padding: 0; background: #fff; border: 1px solid #e6e8ee; border-radius: 18px; box-shadow: 0 18px 40px -24px rgba(16,24,40,.35); }
.dc-ph-steps li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; counter-increment: dcstep; }
.dc-ph-steps li + li { border-left: 1px solid #eef0f4; }
.dc-ph-steps__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; color: #0e82fd; background: #eaf4ff; }
.dc-ph-steps strong { display: block; font-size: 15px; color: #272b41; }
.dc-ph-steps small { display: block; font-size: 13px; color: #6b7280; line-height: 1.45; }

.dc-ph-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.dc-ph-section-head h3 { font-size: 24px; margin: 0; }
.dc-ph-section-head a { font-weight: 600; white-space: nowrap; }

/* Category boxes: equal height, content centred, no inherited .card margin. */
.dc-ph-cat { --tone: #0e82fd; --tone-bg: #e0efff; display: flex; flex: 1 1 auto; width: 100%; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; margin: 0; padding: 22px 12px; min-height: 168px; background: #fff; border-radius: 18px; border: 1px solid #e6e8ee; color: #272b41; transition: border-color .2s, box-shadow .2s, transform .2s; }
.dc-ph-cat:hover { border-color: var(--tone); box-shadow: 0 14px 28px -16px var(--tone); transform: translateY(-3px); color: #272b41; }
.dc-ph-cat__icon { width: 60px; height: 60px; margin-bottom: 8px; border-radius: 18px; background: var(--tone-bg); color: var(--tone); display: grid; place-items: center; font-size: 24px; transition: background .2s, color .2s; }
.dc-ph-cat:hover .dc-ph-cat__icon { background: var(--tone); color: #fff; }
.dc-ph-cat__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.dc-ph-cat__count { font-size: 13px; color: #6b7280; line-height: 1.3; }
.dc-ph-cat--blue { --tone: #0e82fd; --tone-bg: #e0efff; }
.dc-ph-cat--teal { --tone: #0d9488; --tone-bg: #ccfbf1; }
.dc-ph-cat--violet { --tone: #7c3aed; --tone-bg: #ede9fe; }
.dc-ph-cat--rose { --tone: #e11d48; --tone-bg: #ffe4e6; }
.dc-ph-cat--amber { --tone: #d97706; --tone-bg: #fef3c7; }
.dc-ph-cat--green { --tone: #16a34a; --tone-bg: #dcfce7; }

/* Cards */
.dc-ph-card { border-radius: 14px; overflow: hidden; border: 1px solid #e6e8ee; transition: box-shadow .15s, transform .15s; }
.dc-ph-card:hover { box-shadow: 0 10px 24px rgba(16,24,40,.08); transform: translateY(-2px); }
.dc-ph-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #f7f9fc; }
.dc-ph-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dc-ph-card:hover .dc-ph-card__img { transform: scale(1.04); }
.dc-ph-card__media { overflow: hidden; aspect-ratio: 1 / 1; }
.dc-ph-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; color: #b6c2d2; }
.dc-ph-card__placeholder--lg { min-height: 320px; font-size: 64px; background: #f7f9fc; border-radius: 12px; }
.dc-ph-rx-flag { position: absolute; top: 10px; left: 10px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.dc-ph-off { position: absolute; top: 10px; right: 10px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.dc-ph-card .card-body { padding: 14px; }
.dc-ph-card__title { font-size: 16px; margin: 0 0 4px; line-height: 1.35; }
.dc-ph-card__title a { color: #272b41; }
.dc-ph-card__title a:hover { color: #0e82fd; }
.dc-ph-price strong { color: #272b41; font-size: 17px; }
.dc-ph-price del { color: #9ca3af; font-size: 13px; margin-left: 6px; }
.dc-ph-price--lg strong { font-size: 26px; }
.dc-ph-save { margin-left: 8px; color: #16a34a; font-weight: 600; font-size: 14px; }

/* Listing */
/* Filter sidebar */
.dc-ph-filters { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e8ee; border-radius: 18px; box-shadow: 0 10px 30px -22px rgba(16,24,40,.45); }
.dc-ph-filters__head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 16px; border-bottom: 1px solid #eef0f4; }
.dc-ph-filters__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 700; color: #272b41; }
.dc-ph-filters__title > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e0efff; color: #0e82fd; font-size: 14px; }
.dc-ph-filters__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #0e82fd; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.dc-ph-filters__clear { margin-left: auto; font-size: 13px; font-weight: 600; color: #e11d48; white-space: nowrap; }
.dc-ph-filters__clear:hover { color: #be123c; text-decoration: underline; }
.dc-ph-filters__close { display: none; margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f1f5f9; color: #475569; }
.dc-ph-filters__clear + .dc-ph-filters__close { margin-left: 4px; }
.dc-ph-filters__body { flex: 1 1 auto; padding: 4px 20px; }
.dc-ph-filters__foot { padding: 14px 20px 18px; border-top: 1px solid #eef0f4; }
.dc-ph-filters__foot .btn { height: 46px; border-radius: 12px; font-weight: 600; }
.dc-ph-filters-overlay { display: none; }

.dc-ph-fsec { margin: 0; padding: 16px 0; border: 0; border-bottom: 1px dashed #e6e8ee; min-width: 0; }
.dc-ph-fsec--last { border-bottom: 0; }
.dc-ph-fsec__label { display: block; float: none; width: auto; margin: 0 0 10px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.dc-ph-fsec .form-select { height: 44px; border-radius: 12px; border-color: #e2e8f0; font-size: 14px; color: #272b41; background-color: #f8fafc; }
.dc-ph-fsec .form-select:focus, .dc-ph-fsearch .form-control:focus { border-color: #0e82fd; background-color: #fff; box-shadow: 0 0 0 4px rgba(14,130,253,.12); }

.dc-ph-fsearch { position: relative; }
.dc-ph-fsearch i { position: absolute; z-index: 3; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; pointer-events: none; }
.dc-ph-fsearch .form-control { height: 44px; padding-left: 38px; border-radius: 12px; border-color: #e2e8f0; background: #f8fafc; font-size: 14px; }

.dc-ph-fcats { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 2px; }
.dc-ph-fcats a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: #334155; font-size: 14px; transition: background .15s, color .15s; }
.dc-ph-fcats a:hover { background: #f5f8fc; color: #0f172a; }
.dc-ph-fcats a.is-active { background: #eaf4ff; color: #0b5ec2; font-weight: 600; }
.dc-ph-fcats__icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; }
.dc-ph-fcats__icon.tone-all { background: #f1f5f9; color: #475569; }
.dc-ph-fcats__icon.tone-blue { background: #e0efff; color: #0e82fd; }
.dc-ph-fcats__icon.tone-teal { background: #ccfbf1; color: #0d9488; }
.dc-ph-fcats__icon.tone-violet { background: #ede9fe; color: #7c3aed; }
.dc-ph-fcats__icon.tone-rose { background: #ffe4e6; color: #e11d48; }
.dc-ph-fcats__icon.tone-amber { background: #fef3c7; color: #d97706; }
.dc-ph-fcats__icon.tone-green { background: #dcfce7; color: #16a34a; }
.dc-ph-fcats a.is-active .dc-ph-fcats__icon { background: #0e82fd; color: #fff; }
.dc-ph-fcats__name { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.dc-ph-fcats__count { flex: none; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.dc-ph-fcats a.is-active .dc-ph-fcats__count { background: #0e82fd; color: #fff; }

/* Segmented control (Prescription) */
.dc-ph-segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #f1f5f9; }
.dc-ph-segment input, .dc-ph-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dc-ph-segment label { margin: 0; padding: 8px 6px; border-radius: 9px; text-align: center; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.dc-ph-segment label:hover { color: #0f172a; }
.dc-ph-segment input:checked + label { background: #fff; color: #0b5ec2; box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.dc-ph-segment input:focus-visible + label, .dc-ph-chips input:focus-visible + label { outline: 2px solid #0e82fd; outline-offset: 2px; }

/* Chips (Dosage form) */
.dc-ph-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-ph-chips label { margin: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-size: 13px; font-weight: 500; color: #334155; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dc-ph-chips label:hover { border-color: #93c5fd; color: #0b5ec2; }
.dc-ph-chips input:checked + label { border-color: #0e82fd; background: #0e82fd; color: #fff; }

/* Switch (In stock only) */
.dc-ph-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; cursor: pointer; }
.dc-ph-switch strong { display: block; font-size: 14px; color: #272b41; }
.dc-ph-switch small { display: block; font-size: 12px; color: #6b7280; line-height: 1.35; }
.dc-ph-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dc-ph-switch__track { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: #cbd5e1; transition: background .2s; }
.dc-ph-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.25); transition: transform .2s; }
.dc-ph-switch input:checked ~ .dc-ph-switch__track { background: #0e82fd; }
.dc-ph-switch input:checked ~ .dc-ph-switch__track::after { transform: translateX(18px); }
.dc-ph-switch input:focus-visible ~ .dc-ph-switch__track { outline: 2px solid #0e82fd; outline-offset: 2px; }

.dc-ph-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.dc-ph-toolbar > .dc-ph-muted { margin-right: auto; }
.dc-ph-filters-toggle { display: none; align-items: center; gap: 2px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #272b41; font-weight: 600; }
.dc-ph-filters-toggle .dc-ph-filters__count { margin-left: 6px; }
.dc-ph-sort select { min-width: 190px; height: 42px; border-radius: 12px; }

/* Below lg: the sidebar becomes a slide-in panel. */
@media (max-width: 991.98px) {
	.dc-ph-filters-toggle { display: inline-flex; }
	.dc-ph-filters-col { position: static; width: 0; padding: 0; margin: 0; flex: 0 0 0; }
	.dc-ph-filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1060; width: min(360px, 88vw); max-height: none; border-radius: 0 18px 18px 0; border: 0; transform: translateX(-105%); transition: transform .25s ease; }
	.dc-ph-filters__close { display: grid; place-items: center; }
	/* The slide-in panel is screen-height, so only here may its contents scroll. */
	.dc-ph-filters__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
	.dc-ph-filters-overlay { position: fixed; inset: 0; z-index: 1055; display: block; background: rgba(15,23,42,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
	body.dc-ph-filters-open { overflow: hidden; }
	body.dc-ph-filters-open .dc-ph-filters { transform: translateX(0); }
	body.dc-ph-filters-open .dc-ph-filters-overlay { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) { .dc-ph-filters, .dc-ph-filters-overlay { transition: none; } }
.dc-ph-pagination { margin-top: 24px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.dc-ph-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #e6e8ee; border-radius: 8px; color: #272b41; }
.dc-ph-pagination .page-numbers.current, .dc-ph-pagination .page-numbers:hover { background: #0e82fd; border-color: #0e82fd; color: #fff; }

/* Detail */
.dc-ph-detail { border-radius: 16px; }
.dc-ph-detail .card-body { padding: 24px; }
.dc-ph-detail__title { font-size: 28px; margin-bottom: 4px; }
.dc-ph-gallery__main { background: #f7f9fc; border-radius: 14px; display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 520px; overflow: hidden; }
.dc-ph-gallery__img { width: 100%; height: 100%; object-fit: cover; }
.dc-ph-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dc-ph-thumb { border: 2px solid transparent; border-radius: 8px; padding: 0; background: #f7f9fc; overflow: hidden; width: 64px; height: 64px; }
.dc-ph-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dc-ph-thumb.is-active { border-color: #0e82fd; }
.dc-ph-buy { display: flex; gap: 10px; max-width: 360px; }
.dc-ph-buy .dc-ph-qty { max-width: 96px; }
.dc-ph-spec th { width: 40%; color: #6b7280; font-weight: 500; }
.dc-ph-h4 { font-size: 17px; margin-bottom: 8px; }
.dc-ph-rx-note { font-size: 14px; }

/* Availability (view prescription modal + doctor editor) */
.dc-ph-availability { margin-top: 20px; }
.dc-ph-availability__title { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; }
.dc-ph-availability .dc-ph-table td { vertical-align: top; }
.dc-ph-availability .dc-ph-match { color: #0b5ec2; }
.dc-ph-alts ul { margin: 4px 0; padding-left: 18px; font-size: 13px; }
.dc-ph-availability__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 8px; }
.dc-ph-actions .btn { margin: 0 4px 4px 0; white-space: nowrap; }
.dc-ph-feedback:not(:empty) { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #eef6ff; color: #0b3d7a; font-size: 14px; }
.dc-ph-feedback.is-error { background: #fef2f2; color: #991b1b; }
.dc-ph-feedback a { font-weight: 600; }

/* Doctor editor additions */
.dc-ph-rx-extra { background: #f7fbff; border: 1px dashed #b9dbff; border-radius: 10px; padding: 12px 12px 0; margin: 0 0 14px; }
.dc-ph-rx-extra__title { font-size: 13px; font-weight: 600; color: #0b5ec2; margin-bottom: 8px; }
.dc-ph-picker { position: relative; }
.dc-ph-picker__results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #e6e8ee; border-radius: 8px; box-shadow: 0 10px 24px rgba(16,24,40,.12); max-height: 260px; overflow: auto; }
.dc-ph-picker__results:empty { display: none; }
.dc-ph-result { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #f1f3f6; padding: 8px 12px; font-size: 14px; }
.dc-ph-result:hover, .dc-ph-result:focus { background: #eef6ff; }
.dc-ph-result small { color: #6b7280; display: block; }
.dc-ph-picked { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: #e0efff; color: #0b5ec2; border-radius: 999px; padding: 4px 10px; margin-top: 6px; }
.dc-ph-picked button { border: 0; background: none; color: inherit; padding: 0; line-height: 1; }
.dc-ph-panel-rx { margin-top: 18px; }
.dc-ph-panel-rx .dc-ph-panel-rx__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dc-ph-panel-rx .dc-ph-availability { margin-top: 8px; }
.dc-ph-panel-rx .dc-ph-availability__title { display: none; }

/* Checkout prescription box */
.dc-ph-checkout-rx { border-radius: 12px; border: 1px solid #fde68a; background: #fffdf5; }
.dc-ph-checkout-rx .form-check { display: flex; gap: 8px; align-items: center; padding-left: 0; }
.dc-ph-checkout-rx .form-check-input { margin: 0; float: none; }
.dc-ph-rx-pane { margin: 8px 0 4px 24px; }
.dc-ph-rx-pane[hidden] { display: none; }
.dc-ph-upload { display: flex; gap: 8px; }

/* Orders */
.dc-ph-status-box { border-radius: 12px; }
.dc-ph-timeline { list-style: none; margin: 16px 0 0; padding: 0 0 0 18px; border-left: 2px solid #e6e8ee; }
.dc-ph-timeline li { position: relative; margin-bottom: 14px; font-size: 14px; }
.dc-ph-timeline__dot { position: absolute; left: -25px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #0e82fd; box-shadow: 0 0 0 3px #fff; }
.dc-ph-table th { white-space: nowrap; }
.dc-ph-notices:empty { display: none; }

@media (max-width: 991.98px) {
	.dc-ph-hero { padding: 36px 32px 56px; }
	.dc-ph-hero__title { font-size: 36px; }
	.dc-ph-steps { margin: -28px 16px 40px; }
}
@media (max-width: 767.98px) {
	.dc-ph-hero { padding: 28px 20px 52px; border-radius: 18px; }
	.dc-ph-hero__title { font-size: 28px; }
	.dc-ph-hero__lead { font-size: 15px; }
	.dc-ph-search { padding: 5px; }
	.dc-ph-search .btn { padding: 0 16px; }
	.dc-ph-hero__btn { flex: 1 1 100%; justify-content: center; }
	.dc-ph-hero__stats { gap: 12px 24px; }
	.dc-ph-hero__stats strong { font-size: 20px; }
	.dc-ph-steps { grid-template-columns: 1fr; margin: -28px 10px 32px; }
	.dc-ph-steps li { padding: 14px 16px; }
	.dc-ph-steps li + li { border-left: 0; border-top: 1px solid #eef0f4; }
	.dc-ph-cat { min-height: 150px; padding: 18px 10px; }
	.dc-ph-cat__icon { width: 52px; height: 52px; font-size: 21px; }
	.dc-ph-toolbar { flex-wrap: wrap; }
	.dc-ph-toolbar > .dc-ph-muted { order: 3; flex: 1 1 100%; }
	.dc-ph-sort { flex: 1 1 auto; }
	.dc-ph-sort select { width: 100%; min-width: 0; }
	.dc-ph-detail__title { font-size: 22px; }
	.dc-ph-upload { flex-direction: column; }
	.dc-ph-card .card-body { padding: 10px; }
	.dc-ph-card__title { font-size: 14px; }
}

@media print {
	.dc-ph-availability, .dc-ph-panel-rx { display: none !important; }
}

/* ---------- Add to cart feedback ---------- */
.dc-ph-add { display: inline-flex; align-items: center; justify-content: center; gap: 2px; transition: background-color .2s, border-color .2s; }
.dc-ph-add.is-loading { opacity: .85; cursor: progress; }
.dc-ph-add.is-added, .dc-ph-add.is-added:disabled { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; opacity: 1; }
.dc-ph-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: dcPhSpin .7s linear infinite; }
@keyframes dcPhSpin { to { transform: rotate(360deg); } }

/* Toast */
.dc-ph-toasts { position: fixed; top: 92px; right: 24px; z-index: 100000; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.dc-ph-toast { position: relative; pointer-events: auto; padding: 16px 44px 16px 16px; background: #fff; border: 1px solid #e6edf6; border-left: 4px solid #16a34a; border-radius: 14px; box-shadow: 0 24px 48px -16px rgba(15,23,42,.35); opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease; }
.dc-ph-toast.is-in { opacity: 1; transform: translateY(0); }
.dc-ph-toast.is-error { border-left-color: #dc2626; }
.dc-ph-toast__row { display: flex; gap: 12px; align-items: center; }
.dc-ph-toast__img { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #f1f5f9; }
.dc-ph-toast__img--icon { display: grid; place-items: center; font-size: 20px; background: #dcfce7; color: #16a34a; }
.dc-ph-toast.is-error .dc-ph-toast__img--icon { background: #fee2e2; color: #dc2626; }
.dc-ph-toast__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-ph-toast__body strong { font-size: 15px; color: #0f172a; }
.dc-ph-toast__body strong i { color: #16a34a; }
.dc-ph-toast__name { font-size: 14px; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-ph-toast.is-error .dc-ph-toast__name { white-space: normal; }
.dc-ph-toast__meta { font-size: 12px; color: #64748b; }
.dc-ph-toast__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.dc-ph-toast__actions .btn { height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 600; }
.dc-ph-toast__close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #94a3b8; }
.dc-ph-toast__close:hover { background: #f1f5f9; color: #0f172a; }

/* Floating cart */
.dc-ph-fab { position: fixed; right: 24px; bottom: 84px; z-index: 9990; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 16px; border-radius: 999px; background: #0e82fd; color: #fff; font-weight: 600; box-shadow: 0 16px 32px -12px rgba(14,130,253,.7); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.dc-ph-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(14,130,253,.8); }
.dc-ph-fab i { font-size: 18px; }
.dc-ph-fab__count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff; color: #0b5ec2; font-size: 13px; font-weight: 700; }
.dc-ph-fab.is-empty { opacity: 0; pointer-events: none; transform: translateY(12px); }
.dc-ph-fab.is-bump { animation: dcPhBump .45s ease; }
@keyframes dcPhBump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (max-width: 575.98px) {
	.dc-ph-toasts { top: auto; bottom: 16px; right: 12px; left: 12px; width: auto; }
	.dc-ph-fab { right: 16px; bottom: 76px; height: 48px; padding: 0 14px; }
	.dc-ph-fab__label { display: none; }
	body:has(.dc-ph-toast.is-in) .dc-ph-fab { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .dc-ph-toast, .dc-ph-fab { transition: none; } .dc-ph-fab.is-bump, .dc-ph-spin { animation: none; } }

/* ---------- Cart: "Change address" shipping calculator ---------- */
/* Desktop: each totals row is a two-column grid with one full-width divider, so the
   address calculator can span the card and labels line up with their first value. */
@media (min-width: 769px) {
	.woocommerce-cart .cart_totals table,
	.woocommerce-cart .cart_totals table > tbody { display: block; width: 100%; }
	.woocommerce-cart .cart_totals table tr { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 24px; align-items: start; padding: 15px 0; border-bottom: 1px solid #ebf2f3; }
	.woocommerce-cart .cart_totals table tr:first-child { padding-top: 0; }
	.woocommerce-cart .cart_totals table tr.order-total { border-bottom: 0; padding-bottom: 4px; }
	.woocommerce-cart .cart_totals table tr > th,
	.woocommerce-cart .cart_totals table tr > td { display: block; width: auto; padding: 0 !important; border: 0 !important; line-height: 22.5px; }
	.woocommerce-cart .cart_totals table tr > th { white-space: nowrap; min-width: max-content; }
	.woocommerce-cart .cart_totals table tr > td { text-align: right; }
	/* Shipping row: label | method, then destination, then the calculator across the card. */
	.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > th { grid-row: 1; }
	.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > td { display: contents; }
	.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > td > * { grid-column: 2; text-align: right; }
	.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > td > .woocommerce-shipping-methods { grid-row: 1; }
	.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > td > .woocommerce-shipping-calculator { grid-column: 1 / -1; }
}
.woocommerce-cart .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
.woocommerce-cart .woocommerce-shipping-methods li, .woocommerce-cart .woocommerce-shipping-methods label { margin: 0; line-height: 22.5px; }
.woocommerce-cart .woocommerce-shipping-destination { margin: 4px 0 0; font-size: 14px; line-height: 21px; color: #64748b; }
.woocommerce-cart .woocommerce-shipping-calculator { margin: 2px 0 0; text-align: right; }
.woocommerce-cart .shipping-calculator-button { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.woocommerce-cart .shipping-calculator-form { margin-top: 14px; padding: 18px 18px 6px; border: 1px solid #e6edf6; border-radius: 14px; background: #f8fafc; text-align: left; }
.woocommerce-cart .shipping-calculator-form .form-row { width: 100%; margin: 0 0 14px; padding: 0; float: none; }
.woocommerce-cart .shipping-calculator-form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #334155; text-align: left; }
.woocommerce-cart .shipping-calculator-form .required { color: #e11d48; text-decoration: none; }
.woocommerce-cart .shipping-calculator-form input.input-text,
.woocommerce-cart .shipping-calculator-form select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 10px; background-color: #fff; font-size: 14px; line-height: 44px; color: #0f172a; box-shadow: none; }
.woocommerce-cart .shipping-calculator-form input.input-text:focus,
.woocommerce-cart .shipping-calculator-form select:focus { border-color: #0e82fd; box-shadow: 0 0 0 4px rgba(14,130,253,.12); outline: 0; }
.woocommerce-cart .shipping-calculator-form .select2-container { width: 100% !important; }
.woocommerce-cart .shipping-calculator-form .select2-container .select2-selection--single { display: flex; align-items: center; height: 46px; padding: 0 36px 0 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.woocommerce-cart .shipping-calculator-form .select2-container .select2-selection--single .select2-selection__rendered { height: auto; padding: 0; line-height: 1.3; font-size: 14px; color: #0f172a; text-align: left; }
.woocommerce-cart .shipping-calculator-form .select2-container .select2-selection--single .select2-selection__arrow { top: 0; right: 10px; height: 44px; }
.woocommerce-cart .shipping-calculator-form .select2-container--open .select2-selection--single,
.woocommerce-cart .shipping-calculator-form .select2-container--focus .select2-selection--single { border-color: #0e82fd; box-shadow: 0 0 0 4px rgba(14,130,253,.12); }
.woocommerce-cart .shipping-calculator-form p:not(.form-row) { margin: 4px 0 12px; text-align: left; }
.woocommerce-cart .shipping-calculator-form button.button { width: 100%; height: 46px; border-radius: 10px; font-weight: 600; }
@media (min-width: 1200px) {
	/* City and ZIP side by side when there is room (the form's display is set inline by jQuery). */
	.woocommerce-cart .shipping-calculator-form #calc_shipping_city_field,
	.woocommerce-cart .shipping-calculator-form #calc_shipping_postcode_field { display: inline-block; width: calc(50% - 6px); vertical-align: top; }
	.woocommerce-cart .shipping-calculator-form #calc_shipping_city_field { margin-right: 4px; }
}

/* ---------- Checkout: payment methods list ---------- */
.woocommerce-checkout #payment ul.payment_methods { margin: 0; padding: 0; list-style: none; }
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method { margin: 0; padding: 16px 0; border-bottom: 1px solid #eef0f4; }
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method:first-child { padding-top: 4px; }
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method:last-child { border-bottom: 1px solid #eef0f4; }
.woocommerce-checkout #payment .wc_payment_method > .d-flex { gap: 14px; min-height: 28px; }
.woocommerce-checkout #payment .wc_payment_method input.input-radio { flex: none; margin: 0; }
.woocommerce-checkout #payment .wc_payment_method label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; line-height: 1.4; cursor: pointer; }
.woocommerce-checkout #payment .wc_payment_method label img { display: block; width: auto; max-height: 24px; margin: 0 !important; float: none; }
.woocommerce-checkout #payment .wc_payment_method label a.about_paypal { font-size: 13px; font-weight: 500; }
.woocommerce-checkout #payment .wc_payment_method .payment_box { margin: 12px 0 0 30px; padding: 0; font-size: 14px; line-height: 1.6; color: #475569; }
.woocommerce-checkout #payment .wc_payment_method .payment_box p:last-child { margin-bottom: 0; }
.woocommerce-checkout #payment .form-row.place-order { margin: 0; padding-top: 24px !important; }
.woocommerce-checkout #payment .place-order .woocommerce-terms-and-conditions-wrapper { margin-bottom: 16px; }

/* ==========================================================================
   Pharmacy checkout (body.dc-ph-checkout, only when the cart holds medicines)
   ========================================================================== */
.dc-ph-checkout { --ck-line: #e6edf6; --ck-ink: #0f172a; --ck-muted: #64748b; --ck-blue: #0e82fd; }

/* Progress bar */
.dc-ph-steps-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; padding: 14px 20px; background: #fff; border: 1px solid var(--ck-line); border-radius: 16px; }
.dc-ph-steps-bar__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #475569; white-space: nowrap; }
.dc-ph-steps-bar__back:hover { color: var(--ck-blue); }
.dc-ph-progress { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.dc-ph-progress li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #94a3b8; }
.dc-ph-progress li + li::before { content: ""; width: 48px; height: 2px; margin: 0 14px; border-radius: 2px; background: #e2e8f0; }
.dc-ph-progress li.is-done + li::before { background: var(--ck-blue); }
.dc-ph-progress__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 700; }
.dc-ph-progress li.is-done { color: #334155; }
.dc-ph-progress li.is-done .dc-ph-progress__dot { background: var(--ck-blue); color: #fff; }
.dc-ph-progress li.is-current { color: var(--ck-ink); }
.dc-ph-progress li.is-current .dc-ph-progress__dot { background: #e0efff; color: var(--ck-blue); box-shadow: 0 0 0 4px rgba(14, 130, 253, .15); }

/* Notices */
.dc-ph-checkout .woocommerce-info,
.dc-ph-checkout .woocommerce-message,
.dc-ph-checkout .woocommerce-error { position: relative; margin: 0 0 20px; padding: 14px 18px 14px 52px; border: 1px solid #cfe3ff; border-radius: 14px; background: #f0f7ff; color: #1e3a8a; font-size: 14px; line-height: 1.5; list-style: none; }
.dc-ph-checkout .woocommerce-info::before,
.dc-ph-checkout .woocommerce-message::before,
.dc-ph-checkout .woocommerce-error::before { content: "\f05a"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); margin: 0; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 18px; color: var(--ck-blue); }
.dc-ph-checkout .woocommerce-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.dc-ph-checkout .woocommerce-error::before { content: "\f071"; color: #dc2626; }
.dc-ph-checkout .woocommerce-info a,
.dc-ph-checkout .woocommerce-message a { font-weight: 700; font-size: inherit; letter-spacing: normal; color: var(--ck-blue); text-transform: none; }

/* Cards */
.dc-ph-checkout form.checkout .card { margin-bottom: 24px; border: 1px solid var(--ck-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 32px -26px rgba(15, 23, 42, .45); overflow: visible; }
.dc-ph-checkout form.checkout .card-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; background: transparent; border-bottom: 1px solid #eef2f7; border-radius: 18px 18px 0 0; }
.dc-ph-checkout form.checkout .card-header::before { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e0efff; color: var(--ck-blue); font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 15px; content: "\f007"; }
.dc-ph-checkout #dc-ph-checkout-rx .card-header::before { content: "\f572"; background: #ede9fe; color: #7c3aed; }
.dc-ph-checkout form.checkout .card:has(#order_review) .card-header::before { content: "\f290"; background: #dcfce7; color: #16a34a; }
.dc-ph-checkout #payment .card-header::before { content: "\f09d"; background: #fef3c7; color: #d97706; }
.dc-ph-checkout form.checkout .card-header h4,
.dc-ph-checkout form.checkout .card-header .card-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--ck-ink); }
.dc-ph-checkout form.checkout .card-body { padding: 22px 24px 24px; }
.dc-ph-checkout #customer_details { padding-bottom: 6px; }
.dc-ph-checkout #customer_details > *:not(.card-header) { padding-left: 24px; padding-right: 24px; }

/* Fields */
.dc-ph-checkout .woocommerce-billing-fields__field-wrapper,
.dc-ph-checkout .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.dc-ph-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
.dc-ph-checkout .woocommerce-shipping-fields__field-wrapper > .form-row { grid-column: 1 / -1; width: auto; float: none; margin: 0 0 16px; padding: 0; }
.dc-ph-checkout #billing_first_name_field, .dc-ph-checkout #billing_last_name_field,
.dc-ph-checkout #billing_city_field, .dc-ph-checkout #billing_state_field,
.dc-ph-checkout #billing_postcode_field, .dc-ph-checkout #billing_phone_field,
.dc-ph-checkout #shipping_first_name_field, .dc-ph-checkout #shipping_last_name_field,
.dc-ph-checkout #shipping_city_field, .dc-ph-checkout #shipping_state_field,
.dc-ph-checkout #shipping_postcode_field { grid-column: auto !important; }
.dc-ph-checkout #billing_address_2_field,
.dc-ph-checkout #shipping_address_2_field { margin-top: -6px !important; }
.dc-ph-checkout form.checkout .form-row label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #334155; line-height: 1.4; }
.dc-ph-checkout form.checkout .form-row label .required { color: #e11d48; text-decoration: none; }
.dc-ph-checkout form.checkout .form-row label .optional { font-weight: 400; color: #94a3b8; }
.dc-ph-checkout form.checkout .form-row input.input-text,
.dc-ph-checkout form.checkout .form-row select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; font-size: 14px; color: var(--ck-ink); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.dc-ph-checkout form.checkout .form-row textarea { width: 100%; min-height: 96px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; resize: vertical; }
.dc-ph-checkout form.checkout .form-row input.input-text::placeholder,
.dc-ph-checkout form.checkout .form-row textarea::placeholder { color: #94a3b8; }
.dc-ph-checkout form.checkout .form-row input.input-text:focus,
.dc-ph-checkout form.checkout .form-row textarea:focus,
.dc-ph-checkout form.checkout .form-row select:focus { border-color: var(--ck-blue); box-shadow: 0 0 0 4px rgba(14, 130, 253, .12); outline: 0; }
.dc-ph-checkout form.checkout .form-row.woocommerce-invalid input.input-text { border-color: #f87171; }
.dc-ph-checkout form.checkout .select2-container .select2-selection--single { display: flex; align-items: center; height: 46px; padding: 0 36px 0 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.dc-ph-checkout form.checkout .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.3; height: auto; font-size: 14px; color: var(--ck-ink); }
.dc-ph-checkout form.checkout .select2-container .select2-selection--single .select2-selection__arrow { top: 0; right: 10px; height: 44px; }
.dc-ph-checkout form.checkout .select2-container--open .select2-selection--single,
.dc-ph-checkout form.checkout .select2-container--focus .select2-selection--single { border-color: var(--ck-blue); box-shadow: 0 0 0 4px rgba(14, 130, 253, .12); }

/* Ship to a different address + order notes */
.dc-ph-checkout #ship-to-different-address { margin: 4px 0 16px; padding: 14px 16px; border: 1px dashed #cbd5e1; border-radius: 12px; font-size: 15px; font-weight: 600; }
.dc-ph-checkout #ship-to-different-address label { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-size: 15px; }
.dc-ph-checkout #ship-to-different-address input { width: 18px; height: 18px; margin: 0; accent-color: var(--ck-blue); }
.dc-ph-checkout .woocommerce-additional-fields h3 { margin: 8px 0 12px; font-size: 16px; font-weight: 700; }

/* Prescription card */
.dc-ph-checkout .dc-ph-checkout-rx { border-color: #ddd6fe !important; }
.dc-ph-checkout .dc-ph-checkout-rx .alert { margin: 0; border-radius: 12px; font-size: 14px; }
.dc-ph-checkout .dc-ph-rx-choice .form-check { margin: 0 0 10px !important; padding: 12px 14px; border: 1px solid var(--ck-line); border-radius: 12px; }
.dc-ph-checkout .dc-ph-rx-choice .form-check:has(input:checked) { border-color: var(--ck-blue); background: #f5faff; }
.dc-ph-checkout .dc-ph-rx-pane { margin: -2px 0 12px; }
.dc-ph-checkout .dc-ph-rx-pane .form-select,
.dc-ph-checkout .dc-ph-upload .form-control { height: 46px; border-color: #e2e8f0; border-radius: 10px; }
.dc-ph-checkout .dc-ph-upload .btn { border-radius: 10px; white-space: nowrap; }

/* Order summary */
.dc-ph-checkout #order_review table.table { margin: 0; }
.dc-ph-checkout #order_review thead th { padding: 0 0 10px; border-bottom: 1px solid #eef2f7; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ck-muted); }
.dc-ph-checkout #order_review tbody td { padding: 14px 0; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.dc-ph-checkout #order_review td.product-name { position: relative; height: 82px; padding-left: 68px; font-size: 14px; color: var(--ck-ink); }
.dc-ph-checkout #order_review .dc-ph-ri__img { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 1px solid #eef2f7; border-radius: 12px; object-fit: cover; }
.dc-ph-checkout #order_review .dc-ph-ri__img--empty { display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; }
.dc-ph-checkout #order_review .dc-ph-ri__name { font-weight: 600; }
.dc-ph-checkout #order_review .dc-ph-ri__rx { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 5px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.dc-ph-checkout #order_review .product-quantity { color: var(--ck-muted); font-weight: 500; }
.dc-ph-checkout #order_review td.product-name dl.variation { display: none; } /* "Prescription: Required" is shown as the Rx badge. */
.dc-ph-checkout #order_review td.product-total { font-weight: 600; white-space: nowrap; }
.dc-ph-checkout #order_review tfoot th,
.dc-ph-checkout #order_review tfoot td { padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; font-weight: 500; color: #334155; }
.dc-ph-checkout #order_review tfoot tr.woocommerce-shipping-totals td { text-align: right; }
.dc-ph-checkout #order_review tfoot .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
.dc-ph-checkout #order_review tfoot tr.order-total th,
.dc-ph-checkout #order_review tfoot tr.order-total td { padding-top: 16px; border-bottom: 0; font-size: 18px; font-weight: 700; color: var(--ck-ink); }
.dc-ph-checkout #order_review tfoot tr.order-total .amount { color: var(--ck-blue); }

/* Place order */
.dc-ph-checkout #payment #place_order { width: 100%; height: 52px; border-radius: 12px; font-size: 15px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 12px 24px -14px rgba(14, 130, 253, .9); }
.dc-ph-assure { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.dc-ph-assure li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--ck-muted); }
.dc-ph-assure i { flex: none; width: 16px; margin-top: 2px; color: #16a34a; text-align: center; }

@media (max-width: 767.98px) {
	.dc-ph-steps-bar { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
	.dc-ph-progress li + li::before { width: 18px; margin: 0 8px; }
	.dc-ph-progress li:not(.is-current) > span:last-child { display: none; }
	.dc-ph-checkout .woocommerce-billing-fields__field-wrapper,
	.dc-ph-checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.dc-ph-checkout form.checkout .card-header { padding: 16px 18px; }
	.dc-ph-checkout form.checkout .card-body { padding: 18px; }
	.dc-ph-checkout #customer_details > *:not(.card-header) { padding-left: 18px; padding-right: 18px; }
}
/* The theme hides notice icons; show ours. */
.dc-ph-checkout .woocommerce-info::before, .dc-ph-checkout .woocommerce-message::before, .dc-ph-checkout .woocommerce-error::before { display: block !important; }

/* ==========================================================================
   Pharmacy cart, confirmation and pay pages (same look as the checkout)
   ========================================================================== */
.dc-ph-cart, .dc-ph-thankyou, .dc-ph-orderpay { --ck-line: #e6edf6; --ck-ink: #0f172a; --ck-muted: #64748b; --ck-blue: #0e82fd; }

/* Notices */
.dc-ph-cart .woocommerce-info, .dc-ph-cart .woocommerce-message, .dc-ph-cart .woocommerce-error,
.dc-ph-orderpay .woocommerce-info, .dc-ph-orderpay .woocommerce-message, .dc-ph-orderpay .woocommerce-error { position: relative; margin: 0 0 20px; padding: 14px 18px 14px 52px; border: 1px solid #cfe3ff; border-radius: 14px; background: #f0f7ff; color: #1e3a8a; font-size: 14px; line-height: 1.5; list-style: none; }
.dc-ph-cart .woocommerce-info::before, .dc-ph-cart .woocommerce-message::before, .dc-ph-cart .woocommerce-error::before,
.dc-ph-orderpay .woocommerce-info::before, .dc-ph-orderpay .woocommerce-message::before, .dc-ph-orderpay .woocommerce-error::before { display: block !important; content: "\f05a"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); margin: 0; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 18px; color: var(--ck-blue); }
.dc-ph-cart .woocommerce-message, .dc-ph-orderpay .woocommerce-message { border-color: #bbf7d0; background: #f0fdf4; color: #14532d; }
.dc-ph-cart .woocommerce-message::before, .dc-ph-orderpay .woocommerce-message::before { content: "\f058"; color: #16a34a; }
.dc-ph-cart .woocommerce-error, .dc-ph-orderpay .woocommerce-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.dc-ph-cart .woocommerce-error::before, .dc-ph-orderpay .woocommerce-error::before { content: "\f071"; color: #dc2626; }
.dc-ph-cart .woocommerce-info a, .dc-ph-cart .woocommerce-message a,
.dc-ph-orderpay .woocommerce-info a, .dc-ph-orderpay .woocommerce-message a { font-weight: 700; font-size: inherit; letter-spacing: normal; color: var(--ck-blue); text-transform: none; }

/* Shared card look */
.dc-ph-cart .woocommerce-cart-form,
.dc-ph-cart .cart-collaterals .card,
.dc-ph-thankyou .woocommerce-order-details,
.dc-ph-thankyou .woocommerce-customer-details,
.dc-ph-thankyou .dc-ph-status-box,
.dc-ph-orderpay #order_review { margin-bottom: 24px; border: 1px solid var(--ck-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 32px -26px rgba(15, 23, 42, .45); }
.dc-ph-cart .woocommerce-cart-form { overflow: hidden; }
.dc-ph-cart .cart-collaterals .card-header,
.dc-ph-thankyou .woocommerce-order-details .card-header,
.dc-ph-thankyou .woocommerce-customer-details .card-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; background: transparent; border-bottom: 1px solid #eef2f7; border-radius: 18px 18px 0 0; }
.dc-ph-cart .cart-collaterals .card-header::before,
.dc-ph-thankyou .woocommerce-order-details .card-header::before,
.dc-ph-thankyou .woocommerce-customer-details .card-header::before { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 15px; content: "\f543"; background: #dcfce7; color: #16a34a; }
.dc-ph-thankyou .woocommerce-order-details .card-header::before { content: "\f290"; }
.dc-ph-thankyou .woocommerce-customer-details .card-header::before { content: "\f3c5"; background: #e0efff; color: var(--ck-blue); }
.dc-ph-cart .cart-collaterals .card-header h4,
.dc-ph-thankyou .card-header h2, .dc-ph-thankyou .card-header h3, .dc-ph-thankyou .card-header h4 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ck-ink); }
.dc-ph-cart .cart-collaterals .card-body,
.dc-ph-thankyou .woocommerce-order-details .card-body,
.dc-ph-thankyou .woocommerce-customer-details .card-body { padding: 22px 24px 24px; }

/* Cart table */
.dc-ph-cart table.cart { margin: 0; border: 0; border-collapse: collapse; }
.dc-ph-cart table.cart thead th { padding: 14px 16px; border: 0; background: #f8fafc; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ck-muted); }
.dc-ph-cart table.cart tbody td { padding: 16px; border: 0; border-top: 1px solid #f1f5f9; vertical-align: middle; font-size: 14px; color: #334155; }
.dc-ph-cart table.cart td.product-name { font-size: 15px; }
.dc-ph-cart table.cart td.product-name img { width: 64px; height: 64px; margin-right: 14px; border: 1px solid #eef2f7; border-radius: 12px; object-fit: cover; vertical-align: middle; }
.dc-ph-cart table.cart td.product-name a.product-name { font-weight: 600; color: var(--ck-ink); }
.dc-ph-cart table.cart td.product-name a.product-name:hover { color: var(--ck-blue); }
.dc-ph-cart table.cart td.product-name dl.variation { display: none; }
.dc-ph-cart .dc-ph-ri__rx { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 5px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.dc-ph-cart table.cart td.product-subtotal { font-weight: 700; color: var(--ck-ink); }
.dc-ph-cart table.cart .quantity div.qty { display: inline-block; width: auto; height: auto; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.dc-ph-cart table.cart .quantity input.qty { display: block; width: 88px; min-width: 0; height: 44px; margin: 0; padding: 0 8px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; box-shadow: none; font-size: 15px; font-weight: 600; text-align: center; transition: border-color .15s ease, box-shadow .15s ease; }
.dc-ph-cart table.cart .quantity input.qty:focus { border-color: var(--ck-blue); box-shadow: 0 0 0 4px rgba(14, 130, 253, .12); outline: 0; }
.dc-ph-cart table.cart td.product-remove { width: 56px; text-align: center; }
.dc-ph-cart table.cart td.product-remove .remove { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background .15s; }
.dc-ph-cart table.cart td.product-remove .remove:hover { background: #fee2e2; }
.dc-ph-cart table.cart td.actions { padding: 16px; border-top: 1px solid #eef2f7; background: #fbfdff; text-align: right; }
.dc-ph-cart table.cart td.actions .button[name="update_cart"] { height: 44px; padding: 0 22px; border: 1px solid var(--ck-blue); border-radius: 10px; background: #fff; color: var(--ck-blue); font-weight: 700; }
.dc-ph-cart table.cart td.actions .button[name="update_cart"]:not(:disabled):hover { background: var(--ck-blue); color: #fff; }
.dc-ph-cart table.cart td.actions .button[name="update_cart"]:disabled { border-color: #cbd5e1; color: #94a3b8; opacity: 1; cursor: not-allowed; }

/* Cart totals */
.dc-ph-cart .cart_totals tr.order-total th, .dc-ph-cart .cart_totals tr.order-total td { font-size: 18px; font-weight: 700; color: var(--ck-ink); }
.dc-ph-cart .cart_totals tr.order-total .amount { color: var(--ck-blue); }
.dc-ph-cart .wc-proceed-to-checkout { padding: 8px 0 0; }
.dc-ph-cart .wc-proceed-to-checkout .checkout-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin: 0; border-radius: 12px; font-size: 15px; font-weight: 700; box-shadow: 0 12px 24px -14px rgba(14, 130, 253, .9); }

/* Confirmation page */
.dc-ph-success { display: flex; align-items: flex-start; gap: 20px; margin: 0 0 24px; padding: 28px; border: 1px solid #bbf7d0; border-radius: 18px; background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%); }
.dc-ph-success__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 24px; box-shadow: 0 0 0 8px rgba(22, 163, 74, .15); }
.dc-ph-success__body { flex: 1 1 auto; min-width: 0; }
.dc-ph-success__body h2 { margin: 2px 0 6px; font-size: 22px; font-weight: 700; color: var(--ck-ink); }
.dc-ph-success__body p { margin: 0 0 16px; max-width: 620px; font-size: 15px; line-height: 1.6; color: #475569; }
.dc-ph-success__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dc-ph-success__actions .btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; }
.dc-ph-success__status { flex: none; }
.dc-ph-thankyou .woocommerce-thankyou-order-received { display: none; }
.dc-ph-thankyou ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.dc-ph-thankyou ul.woocommerce-order-overview::before, .dc-ph-thankyou ul.woocommerce-order-overview::after { display: none; }
.dc-ph-thankyou ul.woocommerce-order-overview li { float: none; margin: 0; padding: 14px 16px; border: 1px solid var(--ck-line); border-radius: 14px; background: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ck-muted); line-height: 1.4; }
.dc-ph-thankyou ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ck-ink); word-break: break-word; }
.dc-ph-thankyou ul.woocommerce-order-overview li.total strong .amount { color: var(--ck-blue); }
.dc-ph-thankyou .woocommerce-order-details table { margin: 0; }
.dc-ph-thankyou .woocommerce-order-details th, .dc-ph-thankyou .woocommerce-order-details td { padding: 12px 0; border-color: #f1f5f9; font-size: 14px; }
.dc-ph-thankyou .woocommerce-order-details tfoot tr:last-child th, .dc-ph-thankyou .woocommerce-order-details tfoot tr:last-child td { font-size: 18px; font-weight: 700; color: var(--ck-ink); }
.dc-ph-thankyou .dc-ph-status-box .card-body { padding: 22px 24px; }
.dc-ph-thankyou .woocommerce-customer-details address { margin: 0; padding: 14px 16px; border: 1px solid #eef2f7; border-radius: 12px; background: #f8fafc; font-style: normal; line-height: 1.7; }
.dc-ph-thankyou .woocommerce-column__title { margin: 0 0 10px; font-size: 15px; font-weight: 700; }

/* Pay for order (orders prepared by the pharmacist) */
.dc-ph-orderpay #order_review { padding: 22px 24px 24px; }
.dc-ph-orderpay #order_review table.shop_table { margin: 0 0 8px; border: 0; }
.dc-ph-orderpay #order_review table.shop_table th, .dc-ph-orderpay #order_review table.shop_table td { padding: 12px 0; border: 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.dc-ph-orderpay #order_review table.shop_table thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ck-muted); }
.dc-ph-orderpay #order_review table.shop_table tfoot tr:last-child th, .dc-ph-orderpay #order_review table.shop_table tfoot tr:last-child td { border-bottom: 0; font-size: 18px; font-weight: 700; color: var(--ck-ink); }
.dc-ph-orderpay #payment { margin-top: 12px; background: transparent; }
.dc-ph-orderpay #payment #place_order { width: 100%; height: 52px; border-radius: 12px; font-size: 15px; font-weight: 700; }

@media (max-width: 767.98px) {
	.dc-ph-cart table.cart td.product-name img { width: 52px; height: 52px; }
	.dc-ph-cart table.cart tbody td { padding: 12px 16px; }
	.dc-ph-success { flex-direction: column; padding: 22px; }
	.dc-ph-success__body h2 { font-size: 19px; }
	.dc-ph-orderpay #order_review { padding: 18px; }
}
/* Confirmation: WooCommerce strips the last overview tile; keep all tiles equal. Completed final step is solid. */
.dc-ph-thankyou ul.woocommerce-order-overview li, .dc-ph-thankyou ul.woocommerce-order-overview li:last-of-type { float: none !important; margin: 0 !important; padding: 14px 16px !important; border: 1px solid var(--ck-line) !important; border-radius: 14px !important; background: #fff !important; }
.dc-ph-progress li.is-done.is-current .dc-ph-progress__dot { background: var(--ck-blue, #0e82fd); color: #fff; box-shadow: 0 0 0 4px rgba(14, 130, 253, .15); }
.dc-ph-orderpay #order_review table.shop_table th:last-child, .dc-ph-orderpay #order_review table.shop_table td:last-child { text-align: right; }
/* The theme adds margin-top to "li + li"; keep all progress steps on one line. */
.dc-ph-progress > li, .dc-ph-progress > li + li { margin: 0 !important; padding: 0 !important; }

/* Hero search: even 6px inset around the button, label in normal case (theme .btn rules override radius/case/border). */
.dc-pharmacy form.dc-ph-search { padding: 6px; border-radius: 16px; align-items: stretch; }
.dc-pharmacy form.dc-ph-search .form-control { height: 52px; }
.dc-pharmacy form.dc-ph-search .btn,
.dc-pharmacy form.dc-ph-search .btn:hover,
.dc-pharmacy form.dc-ph-search .btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 52px;
	min-width: 132px;
	margin: 0;
	padding: 0 30px;
	border: 0;
	border-radius: 10px !important; /* theme.css forces 8px !important on every button */
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
}
.dc-pharmacy form.dc-ph-search .btn:focus-visible { box-shadow: 0 0 0 3px rgba(14, 130, 253, .3); }
@media (max-width: 575.98px) {
	.dc-pharmacy form.dc-ph-search { padding: 5px; border-radius: 14px; }
	.dc-pharmacy form.dc-ph-search .form-control, .dc-pharmacy form.dc-ph-search .btn { height: 46px; }
	.dc-pharmacy form.dc-ph-search .btn { min-width: 0; padding: 0 18px; border-radius: 10px; }
}
