/* Galaxy add-to-cart popup (Galaxy_CartPopup). Everything is scoped to .gcp, which only exists when the redesign is on. */

.cart-informed-modal .modal-popup._show .modal-inner-wrap:has(.gcp) { width: 1080px; max-width: calc(100% - 40px); }
.cart-informed-modal .modal-inner-wrap:has(.gcp) .modal-content { padding: 32px; }
.cart-informed-modal .modal-inner-wrap:has(.gcp) .action-close { background: #cc2229; width: 40px; height: 40px; top: 0; right: 0; padding: 0; }
.cart-informed-modal .modal-inner-wrap:has(.gcp) .action-close:before { color: #fff; font-size: 22px; line-height: 40px; }

.gcp { font-family: "Open Sans", Arial, sans-serif; color: #111; text-align: left; }
.gcp .gcp-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }

.gcp .gcp-added { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.gcp .gcp-tick { width: 32px; height: 32px; border-radius: 50%; background: #2e8b3d; display: flex; align-items: center; justify-content: center; flex: none; }
.gcp .gcp-headline { display: block; font-size: 22px; font-weight: 700; line-height: 1.3; }
.gcp .gcp-sub { font-size: 13px; color: #666; margin: 2px 0 0; }

.gcp .gcp-item { display: flex; gap: 16px; align-items: center; padding: 0 0 16px; border-bottom: 1px solid #eee; }
.gcp .gcp-item-img { width: 96px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center; }
.gcp .gcp-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gcp .gcp-item-info { flex: 1; min-width: 0; }
.gcp .gcp-item-name { display: block; font-weight: 700; font-size: 15px; text-transform: uppercase; color: #111; line-height: 1.35; }
.gcp .gcp-item-name:hover { color: #cc2229; text-decoration: none; }
.gcp .gcp-item-meta { font-size: 12px; color: #777; margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gcp .gcp-badge { background: #cc2229; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.gcp .gcp-lastone { color: #1f7a2e; font-weight: 700; }
.gcp .gcp-item-price { text-align: right; font-weight: 700; font-size: 18px; white-space: nowrap; }
.gcp .gcp-item-price .price { color: #111; }
.gcp .gcp-was { display: block; color: #888; text-decoration: line-through; font-size: 13px; font-weight: 400; }
.gcp .gcp-now { display: block; }

.gcp .gcp-others { font-size: 13px; color: #555; padding: 10px 0 0; }
.gcp .gcp-others a { color: #cc2229; }

.gcp .gcp-delivery { font-size: 13px; padding: 14px 0; border-bottom: 1px solid #eee; color: #444; }
.gcp .gcp-delivery:empty { display: none; }
.gcp .gcp-delivery-ok strong { color: #2e8b3d; }
.gcp .gcp-bar { height: 5px; background: #e5e5e5; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.gcp .gcp-bar i { display: block; height: 100%; background: #2e8b3d; }

.gcp .gcp-protect { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eee; font-size: 13px; }
.gcp .gcp-protect.is-loading { opacity: .5; }
.gcp .gcp-protect-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 0; font-weight: 400; }
.gcp .gcp-protect-label input { accent-color: #cc2229; margin: 3px 0 0; width: 16px; height: 16px; }
.gcp .gcp-protect-label small { display: block; color: #777; font-size: 12px; margin-top: 1px; }
.gcp .gcp-protect-plan { width: auto; border: 1px solid #ccc; border-radius: 4px; padding: 7px 8px; font-size: 13px; background: #fff; height: auto; }
.gcp .gcp-protect-error { flex-basis: 100%; color: #cc2229; font-size: 12px; }
.gcp .gcp-protect-error:empty { display: none; }

.gcp .gcp-summary { background: #fafafa; border-radius: 6px; padding: 20px; }
.gcp .gcp-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.gcp .gcp-subtotal, .gcp .gcp-subtotal .price { font-weight: 700; color: #111; }
.gcp .gcp-saving { color: #1f7a2e; font-weight: 600; }
.gcp .gcp-btn { display: block; width: 100%; padding: 13px; border: 1.5px solid transparent; border-radius: 4px; font-weight: 700; font-size: 14px; line-height: 1.2; text-transform: uppercase; text-align: center; cursor: pointer; margin-top: 10px; box-shadow: none; }
.gcp .gcp-btn-primary { background: #cc2229; border-color: #cc2229; color: #fff; }
.gcp .gcp-btn-primary:hover { background: #a91b21; border-color: #a91b21; }
.gcp a.gcp-btn-primary, .gcp a.gcp-btn-primary:hover, .gcp a.gcp-btn-primary:visited { color: #fff; text-decoration: none; }
.gcp .gcp-btn-outline { background: #fff; border-color: #111; color: #111; }
.gcp .gcp-btn-outline:hover { background: #111; color: #fff; }
.gcp .gcp-link { display: block; text-align: center; font-size: 13px; color: #555; margin-top: 12px; text-decoration: underline; }
.gcp .gcp-error { color: #cc2229; margin-bottom: 10px; }

.gcp .gcp-recs-title { font-size: 16px; font-weight: 700; text-transform: uppercase; margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 1px solid #ddd; }
.gcp .gcp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.gcp .gcp-card { display: flex; flex-direction: column; margin: 0; padding: 0; }
.gcp .gcp-card-img { display: block; aspect-ratio: 1 / 1; margin-bottom: 8px; }
.gcp .gcp-card-img img { width: 100%; height: 100%; object-fit: contain; }
.gcp .gcp-card-name { font-size: 12.5px; font-weight: 600; text-transform: uppercase; line-height: 1.3; height: 32px; overflow: hidden; color: #111; }
.gcp .gcp-card-price { font-weight: 700; font-size: 15px; margin: 6px 0 8px; }
.gcp .gcp-card-was { color: #888; font-weight: 400; font-size: 12px; margin-left: 6px; white-space: nowrap; display: inline-block; }
.gcp .gcp-card form { margin-top: auto; }
.gcp .gcp-btn-small { margin: auto 0 0; padding: 9px; font-size: 12px; background: #fff; color: #cc2229; border-color: #cc2229; }
.gcp .gcp-btn-small:hover { background: #cc2229; color: #fff; text-decoration: none; }

/* Mobile: bottom sheet, summary under the item, swipeable recommendations */
@media (max-width: 767px) {
    .cart-informed-modal .modal-popup._show .modal-inner-wrap:has(.gcp) {
        width: 100%; max-width: 100%; margin: 0; position: fixed; left: 0; right: 0; bottom: 0; top: auto;
        max-height: 90vh; border-radius: 18px 18px 0 0; transform: none;
    }
    .cart-informed-modal .modal-inner-wrap:has(.gcp) .modal-content { padding: 20px 16px; max-height: 90vh; overflow-y: auto; }
    .cart-informed-modal .modal-inner-wrap:has(.gcp) .action-close { background: none; }
    .cart-informed-modal .modal-inner-wrap:has(.gcp) .action-close:before { color: #111; }
    .gcp .gcp-top { grid-template-columns: 1fr; gap: 12px; }
    .gcp .gcp-headline { font-size: 17px; padding-right: 30px; }
    .gcp .gcp-item-img { width: 64px; height: 64px; }
    .gcp .gcp-item-name { font-size: 13px; }
    .gcp .gcp-item-price { font-size: 16px; }
    .gcp .gcp-summary { background: none; padding: 0; }
    .gcp .gcp-grid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; }
    .gcp .gcp-card { flex: 0 0 130px; }
    .gcp .gcp-recs-title { font-size: 15px; margin-top: 18px; }
}
