.pcr-cart-drawer[hidden] { display: none !important; }
.pcr-cart-drawer { position: fixed; inset: 0; z-index: 2147483000; }
.pcr-cart-drawer__shade { position: absolute; inset: 0; background: rgba(0,0,0,.48); }
.pcr-cart-drawer__panel { position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column; width: min(480px,100%); height: 100%; height: 100dvh; color: #242424; background: #fff; box-shadow: -12px 0 36px rgba(0,0,0,.18); animation: pcr-cart-slide .2s ease-out; }
.pcr-cart-drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; background: #252525; color: #fff; border-bottom: 3px solid #5bb112; }
body .pcr-cart-drawer__head h2 { margin: 0; color: #fff; font-size: 19px; font-weight: 650; text-transform: none; }
.pcr-cart-drawer__close { border: 1px solid #555; background: #333; color: #fff; width: 40px; height: 40px; font-size: 25px; line-height: 1; }
.pcr-cart-drawer__body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.pcr-cart-drawer__success { padding: 13px 15px; background: #eef6e9; border-left: 3px solid #5bb112; color: #263320; line-height: 1.5; }
body .pcr-cart-drawer h3 { margin: 24px 0 12px; color: #242424; font-size: 16px; font-weight: 650; text-transform: none; }
.pcr-cart-drawer__product { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e2e6df; }
.pcr-cart-drawer__image { flex: 0 0 74px; background: #fff; border: 1px solid #e3e3e3; }
.pcr-cart-drawer__image img { display: block; width: 100%; height: auto; object-fit: contain; }
.pcr-cart-drawer__product-info { flex: 1; min-width: 0; }
body .pcr-cart-drawer__name { display: block; color: #252525; font-size: 13px; font-weight: 600; line-height: 1.4; }
.pcr-cart-drawer__reason, .pcr-cart-drawer__price { display: block; margin-top: 4px; font-size: 11px; color: #5d6859; }
.pcr-cart-drawer__price { font-size: 13px; color: #347a0b; }
body .pcr-cart-drawer__add { flex: 0 0 auto; padding: 9px; border: 1px solid #5bb112; background: #fff; color: #36770d; font-size: 12px; font-weight: 600; text-decoration: none; }
.pcr-cart-drawer__service { display: flex; align-items: center; gap: 10px; padding: 11px; margin: 0; border: 1px solid #e0e5dd; border-bottom: 0; color: #282828; font-size: 12px; font-weight: 400; }
.pcr-cart-drawer__service:last-of-type { border-bottom: 1px solid #e0e5dd; }
.pcr-cart-drawer__service input { flex: 0 0 auto; accent-color: #5bb112; margin: 0; }
.pcr-cart-drawer__service span { flex: 1; }
.pcr-cart-drawer__service strong { white-space: nowrap; }
.pcr-cart-drawer__muted { margin: 10px 0; color: #656b63; font-size: 12px; line-height: 1.45; }
.pcr-cart-drawer__error { color: #a32b20; font-size: 13px; }
.pcr-cart-drawer__foot { display: grid; gap: 8px; padding: 15px 20px calc(15px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #e0e5dd; }
body .pcr-cart-drawer__checkout, .pcr-cart-drawer__continue { display: block; padding: 13px; border: 1px solid #4b960f; background: #5bb112; color: #fff; text-align: center; font-weight: 650; text-decoration: none; }
.pcr-cart-drawer__continue { background: #fff; color: #333; border-color: #d8ded5; }
.pcr-cart-drawer :is(a,button,input):focus-visible { outline: 3px solid #5bb112; outline-offset: 2px; }
body.pcr-cart-drawer-open { overflow: hidden; }
@keyframes pcr-cart-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .pcr-cart-drawer__panel { animation: none; } }

/* Wider confirmation with compact recommendations; checkout behaviour is unchanged. */
.pcr-cart-drawer__panel { width: min(680px, 100%); }
.pcr-cart-drawer__head { padding: 20px 24px; }
.pcr-cart-drawer__close { flex: 0 0 44px; width: 44px; height: 44px; cursor: pointer; }
.pcr-cart-drawer__body { min-height: 0; padding: 22px 24px; }
.pcr-cart-drawer__success { display: flex; gap: 11px; margin: 0; padding: 15px; border: 1px solid #cfe6c5; border-left: 4px solid #5bb112; }
.pcr-cart-drawer__success::before { content: '✓'; flex: 0 0 auto; color: #398c0c; font-size: 18px; font-weight: 700; }
.pcr-cart-drawer__product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcr-cart-drawer__product { display: grid; grid-template-columns: 80px minmax(0, 1fr); grid-template-areas: 'image info' 'image action'; align-items: start; gap: 5px 12px; min-width: 0; padding: 12px; border: 1px solid #e0e9db; background: #fff; }
.pcr-cart-drawer__image { grid-area: image; display: block; width: 80px; border-color: #e7ebe5; }
.pcr-cart-drawer__product-info { grid-area: info; min-width: 0; }
body .pcr-cart-drawer__name { overflow-wrap: anywhere; font-size: 13px; }
.pcr-cart-drawer__reason { margin-top: 5px; color: #687365; font-size: 11px; line-height: 1.35; }
.pcr-cart-drawer__price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-top: 8px; }
.pcr-cart-drawer__price { margin: 0; color: #2f7d0b; font-size: 15px; line-height: 1.35; }
.pcr-cart-drawer__sale { display: inline-block; padding: 3px 6px; background: #e8f6e0; color: #286908; font-size: 11px; font-weight: 600; line-height: 1.3; }
body .pcr-cart-drawer__add { grid-area: action; justify-self: start; min-height: 38px; margin-top: 4px; padding: 8px 12px; }
.pcr-cart-drawer__service { padding: 13px; font-size: 13px; }
.pcr-cart-drawer__foot { flex: 0 0 auto; grid-template-columns: 1.2fr 1fr; padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)); }
body .pcr-cart-drawer__checkout, .pcr-cart-drawer__continue { min-height: 48px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 600px) {
  .pcr-cart-drawer__head { padding: 15px 16px; }
  .pcr-cart-drawer__body { padding: 16px; }
  .pcr-cart-drawer__product-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pcr-cart-drawer__foot { grid-template-columns: minmax(0, 1fr); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
  .pcr-cart-drawer__product { grid-template-columns: 68px minmax(0, 1fr); padding: 10px; }
  .pcr-cart-drawer__image { width: 68px; }
}
html[data-theme="dark"] .pcr-cart-drawer__panel,
html[data-theme="dark"] .pcr-cart-drawer__foot { background: #202b22; color: #eef5ea; border-color: #40553e; }
html[data-theme="dark"] .pcr-cart-drawer__success { background: #293c2a; border-color: #4c743e; color: #eef5ea; }
html[data-theme="dark"] .pcr-cart-drawer__success::before { color: #9bdf78; }
html[data-theme="dark"] body .pcr-cart-drawer h3,
html[data-theme="dark"] body .pcr-cart-drawer__name,
html[data-theme="dark"] .pcr-cart-drawer__service { color: #eef5ea; }
html[data-theme="dark"] .pcr-cart-drawer__product { background: #263429; border-color: #40553e; }
html[data-theme="dark"] .pcr-cart-drawer__reason,
html[data-theme="dark"] .pcr-cart-drawer__muted { color: #c0d1ba; }
html[data-theme="dark"] .pcr-cart-drawer__price { color: #b3e69d; }
html[data-theme="dark"] .pcr-cart-drawer__sale { background: #365334; color: #d8f4c8; }
html[data-theme="dark"] body .pcr-cart-drawer__add,
html[data-theme="dark"] .pcr-cart-drawer__continue { background: #2a3a2b; border-color: #638456; color: #d7f2c9; }
html[data-theme="dark"] .pcr-cart-drawer__service { border-color: #40553e; }

/* Confirmation layout: the actual cart item first, then services and recommendations. */
.pcr-cart-drawer__panel { width: min(800px, 100%); }
.pcr-cart-drawer__head h2::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: #5bb112; color: #fff; font-size: 16px; }
.pcr-cart-drawer__success--visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.pcr-cart-drawer__added-item { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto minmax(100px, auto); align-items: center; gap: 16px; padding: 16px; border: 1px solid #dfe8dc; background: #f8fbf6; }
.pcr-cart-drawer__added-item + .pcr-cart-drawer__added-item { border-top: 0; }
.pcr-cart-drawer__added-image { display: block; width: 100px; background: #fff; border: 1px solid #e5ebe2; }
.pcr-cart-drawer__added-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.pcr-cart-drawer__added-info { min-width: 0; }
body .pcr-cart-drawer__added-name { display: block; color: #242c22; font-size: 15px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.pcr-cart-drawer__added-option { display: block; margin-top: 4px; color: #677365; font-size: 12px; line-height: 1.4; }
.pcr-cart-drawer__added-quantity { padding: 7px 11px; border: 1px solid #dbe7d6; background: #fff; color: #34472e; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pcr-cart-drawer__added-pricing { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.pcr-cart-drawer__added-price { color: #32830a; font-size: 17px; line-height: 1.25; white-space: nowrap; }
.pcr-cart-drawer__added-total { color: #677365; font-size: 11px; line-height: 1.35; }
body .pcr-cart-drawer h3 { margin: 26px 0 12px; font-size: 17px; }
.pcr-cart-drawer__service { gap: 12px; min-height: 58px; padding: 10px 12px; }
.pcr-cart-drawer__service .pcr-cart-drawer__service-icon { display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; height: 34px; color: #438c17; background: #edf7e9; font-size: 16px; }
.pcr-cart-drawer__service strong { color: inherit; font-size: 13px; }
.pcr-cart-drawer__product-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pcr-cart-drawer__product { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
.pcr-cart-drawer__image { flex: 0 0 auto; width: 100%; border-color: #e7ebe5; }
.pcr-cart-drawer__image img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pcr-cart-drawer__product-info { flex: 1; }
body .pcr-cart-drawer__add { align-self: stretch; justify-self: auto; min-height: 40px; margin-top: 0; text-align: center; }
.pcr-cart-drawer__foot { grid-template-columns: 1fr 1.15fr; }
@media (max-width: 600px) {
  .pcr-cart-drawer__added-item { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .pcr-cart-drawer__added-image { grid-row: span 2; width: 76px; }
  .pcr-cart-drawer__added-name { font-size: 13px !important; }
  .pcr-cart-drawer__added-pricing { grid-column: 2 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; text-align: left; }
  .pcr-cart-drawer__added-price { font-size: 15px; }
  .pcr-cart-drawer__product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcr-cart-drawer__foot { grid-template-columns: 1fr 1fr; gap: 8px; }
  body .pcr-cart-drawer__checkout, .pcr-cart-drawer__continue { padding: 10px 8px; font-size: 12px; line-height: 1.3; }
}
@media (max-width: 360px) {
  .pcr-cart-drawer__added-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .pcr-cart-drawer__added-image { width: 64px; }
  .pcr-cart-drawer__service { gap: 8px; }
}
html[data-theme="dark"] .pcr-cart-drawer__added-item { background: #263429; border-color: #40553e; }
html[data-theme="dark"] body .pcr-cart-drawer__added-name { color: #eef5ea; }
html[data-theme="dark"] .pcr-cart-drawer__added-option,
html[data-theme="dark"] .pcr-cart-drawer__added-total { color: #c0d1ba; }
html[data-theme="dark"] .pcr-cart-drawer__added-quantity { background: #202b22; border-color: #40553e; color: #e3f1de; }
html[data-theme="dark"] .pcr-cart-drawer__added-price { color: #b3e69d; }
html[data-theme="dark"] .pcr-cart-drawer__service .pcr-cart-drawer__service-icon { background: #354b34; color: #a7df88; }

/* Quantity changes are applied to this exact cart line and never remove it. */
.pcr-cart-drawer__added-quantity { display: inline-flex; align-items: center; padding: 0; }
.pcr-cart-drawer__qty-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 38px; padding: 0; border: 0; background: transparent; color: #367c11; font-size: 20px; line-height: 1; cursor: pointer; }
.pcr-cart-drawer__qty-button:disabled { color: #a4b39e; cursor: not-allowed; }
.pcr-cart-drawer__qty-button:not(:disabled):hover { background: #edf7e9; }
.pcr-cart-drawer__qty-value { min-width: 48px; padding: 0 5px; color: inherit; font-size: 13px; text-align: center; white-space: nowrap; }
.pcr-cart-drawer [aria-disabled="true"] { opacity: .65; cursor: wait; }
html[data-theme="dark"] .pcr-cart-drawer__qty-button { color: #b3e69d; }
html[data-theme="dark"] .pcr-cart-drawer__qty-button:disabled { color: #70856c; }
html[data-theme="dark"] .pcr-cart-drawer__qty-button:not(:disabled):hover { background: #354b34; }
@media (max-width: 360px) { .pcr-cart-drawer__qty-button { width: 32px; } .pcr-cart-drawer__qty-value { min-width: 40px; } }
@media (max-width: 600px) {
  .pcr-cart-drawer__added-item { grid-template-areas: 'image info info' 'image pricing quantity'; }
  .pcr-cart-drawer__added-image { grid-area: image; }
  .pcr-cart-drawer__added-info { grid-area: info; }
  .pcr-cart-drawer__added-pricing { grid-area: pricing; }
  .pcr-cart-drawer__added-quantity { grid-area: quantity; justify-self: end; }
}
