body:has(.cm-checkout-shell) .entry-title {
    display: none;
}

.cm-checkout-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    min-height: 100vh;
    font-family: inherit;
}

.cm-checkout-main {
    padding: 48px 70px;
}

.cm-order-sidebar {
    background: #f4f6f7;
    padding: 48px 36px;
    border-left: 1px solid #e6e6e6;
}

.cm-sidebar-inner {
    position: sticky;
    top: 30px;
}

.cm-logo-wrap {
    text-align: center;
    margin-bottom: 34px;
}

.cm-logo-placeholder {
    display: inline-flex;
    width: 130px;
    height: 92px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #981b1b;
    color: #fff;
    font-weight: 700;
}

.cm-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 38px;
    position: relative;
}

.cm-progress:before {
    content: "";
    position: absolute;
    top: 17px;
    left: 8%;
    right: 8%;
    height: 2px;
    border-top: 2px dotted #ddd;
    z-index: 0;
}

.cm-step {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #aaa;
    flex: 1;
    text-transform: uppercase;
}

.cm-step span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #ddd;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-weight: 700;
}

.cm-step.active span,
.cm-step.done span {
    border-color: #62a635;
    color: #62a635;
}

.cm-step.done span {
    background: #62a635;
    color: #fff;
}

.cm-step small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
}

.cm-panel {
    display: none;
    max-width: 720px;
    margin: 0 auto;
}

.cm-panel.active {
    display: block;
}

.cm-panel h2 {
    font-size: 30px;
    margin-bottom: 24px;
}

.cm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cm-panel label:not(.cm-option):not(.cm-checkbox) {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
}

.cm-panel input,
.cm-panel select,
.cm-panel textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.cm-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
}

.cm-checkbox input {
    width: auto;
}

.cm-options {
    display: grid;
    gap: 12px;
}

.cm-option {
    display: grid !important;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px 18px;
    cursor: pointer;
    background: #fff;
}

.cm-option:hover,
.cm-option.selected {
    border-color: #62a635;
    box-shadow: 0 0 0 2px rgba(98,166,53,.12);
}

.cm-option input {
    width: 20px;
    height: 20px;
}

.cm-option small {
    display: block;
    color: #777;
    margin-top: 3px;
}

.cm-option strong {
    white-space: nowrap;
    font-size: 17px;
}

.cm-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.cm-next,
.cm-prev,
#cm-place-order {
    border: none;
    padding: 15px 24px;
    border-radius: 4px;
    font-size: 17px;
    cursor: pointer;
}

.cm-next,
#cm-place-order {
    background: #d7b42c;
    color: #fff;
}

.cm-prev {
    background: #eee;
}

.cm-link-button {
    border: none;
    background: transparent;
    color: #d7b42c;
    cursor: pointer;
    font-weight: 700;
}

.cm-mini-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #ddd;
    padding: 14px;
    margin-bottom: 28px;
}

.cm-mini-summary span {
    color: #aaa;
}

.cm-error {
    color: #b00020;
    font-weight: 700;
    min-height: 20px;
}

.cm-message {
    margin-top: 15px;
    font-weight: 700;
}

.cm-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.cm-sidebar-head h3 {
    margin: 0;
    font-size: 21px;
}

.cm-sidebar-head a {
    color: #d7b42c;
    text-decoration: none;
}

.cm-cart-item {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}

.cm-cart-thumb img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.cm-cart-name strong {
    display: block;
    font-size: 15px;
}

.cm-cart-name small {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    color: #555;
}

.cm-cart-price {
    font-weight: 800;
    white-space: nowrap;
}

.cm-totals {
    border-top: 1px solid #ddd;
    margin-top: 26px;
    padding-top: 18px;
}

.cm-totals > div {
    display: flex;
    justify-content: space-between;
    margin: 13px 0;
    gap: 20px;
}

.cm-grand-total {
    border-top: 1px solid #ddd;
    margin-top: 20px !important;
    padding-top: 18px;
    font-size: 24px;
    font-weight: 900;
}

.cm-final-summary {
    border: 1px solid #ddd;
    padding: 18px;
    background: #fff;
}

.cm-map-box {
    margin-top: 18px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 14px;
}

.cm-map-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

#cm-gls-map-wrap {
    height: 600px;
}

#cm-gls-map-wrap gls-dpm {
    display: block;
    height: 600px;
}

@media (max-width: 980px) {
    .cm-checkout-shell {
        grid-template-columns: 1fr;
    }

    .cm-order-sidebar {
        grid-row: 1;
        border-left: 0;
        padding: 22px;
    }

    .cm-checkout-main {
        padding: 28px 18px;
    }

    .cm-grid {
        grid-template-columns: 1fr;
    }

    .cm-panel h2 {
        font-size: 26px;
    }

    .cm-option {
        grid-template-columns: 34px 1fr;
    }

    .cm-option strong {
        grid-column: 2;
    }

    .cm-mini-summary {
        grid-template-columns: 1fr;
    }
}


.cm-shipping-row {
    margin-bottom: 10px;
}

.cm-shipping-row.is-inactive {
    opacity: .35;
}

.cm-shipping-detail {
    display: none;
    background: #f3f3f3;
    border: 1px solid #e2e2e2;
    border-top: 0;
    padding: 18px;
    margin-top: -10px;
    margin-bottom: 14px;
}

.cm-shipping-row.selected .cm-shipping-detail {
    display: block;
}

.cm-red-note {
    color: red;
    font-weight: 800;
    margin: 0 0 16px;
}

.cm-shipping-detail input,
.cm-shipping-detail select {
    background: #fff;
    margin-bottom: 14px;
}

.cm-map-box {
    margin-top: 0;
    border: 1px solid #ddd;
    background: #fff;
    padding: 14px;
}

.cm-gls-map-wrap {
    height: 600px;
}

.cm-gls-map-wrap gls-dpm {
    display: block;
    height: 600px;
}

.cm-selected-point {
    margin-top: 12px;
    padding: 12px;
    background: #fffbe8;
    border: 1px solid #e8dca2;
    font-weight: 700;
}

.cm-opening-hours {
    margin-top: 14px;
    line-height: 1.55;
}


/* v0.5.3 - selected shipping visibility fix */
.cm-shipping-row.is-inactive {
    opacity: 1 !important;
}

.cm-shipping-row.is-inactive .cm-option {
    background: #ffffff;
    border-color: #e2e2e2;
    color: #333333;
}

.cm-shipping-row.is-inactive .cm-option span,
.cm-shipping-row.is-inactive .cm-option small,
.cm-shipping-row.is-inactive .cm-option strong {
    color: #333333 !important;
}

.cm-shipping-row.is-inactive .cm-option small {
    color: #777777 !important;
}

.cm-shipping-row.selected .cm-option {
    background: #fffdf4;
    border: 2px solid #62a635;
    box-shadow: 0 0 0 3px rgba(98, 166, 53, 0.16);
}

.cm-shipping-row.selected .cm-option span {
    color: #111111 !important;
    font-weight: 800;
}

.cm-shipping-row.selected .cm-option strong {
    color: #111111 !important;
    font-weight: 900;
}

.cm-shipping-row.selected .cm-shipping-detail {
    border: 2px solid #62a635;
    border-top: 0;
    background: #f6f6f6;
}

.cm-option:hover {
    border-color: #62a635;
    background: #fffdf4;
}

.cm-option input[type="radio"] {
    accent-color: #62a635;
}


/* v0.6.2 - MPL coming soon */
.cm-coming-soon-row .cm-option {
    background: #f7f7f7 !important;
    border-color: #e5e5e5 !important;
    cursor: not-allowed;
}

.cm-coming-soon-row .cm-option span,
.cm-coming-soon-row .cm-option small {
    color: #777 !important;
}

.cm-coming-soon-row .cm-option strong {
    color: #a05a00 !important;
    background: #fff2cc;
    padding: 4px 8px;
    border-radius: 4px;
}

.cm-coming-soon-row input[type="radio"] {
    cursor: not-allowed;
}

.cm-coming-soon-row .cm-option:hover {
    border-color: #e5e5e5 !important;
    background: #f7f7f7 !important;
}


/* v0.6.3 - company billing fields */
.cm-company-fields {
    margin: 12px 0 18px;
}

.cm-company-fields label {
    display: block;
    font-weight: 700;
    margin: 10px 0 6px;
}

.cm-company-fields small {
    font-weight: 400;
    color: #666;
}


/* v0.6.4 - company checkbox fix */
.cm-company-fields input {
    width: 100%;
    margin-bottom: 10px;
}


/* v0.6.6-clean - optional company fields always visible */
.cm-checkout-main label small {
    font-weight: 400;
    color: #777;
}


/* v0.6.7-clean - hide/remove old company checkbox remnants */
input[name="billing[is_company]"],
input[name="billing[is_company]"] + span {
    display: none !important;
}

label.cm-checkbox:has(input[name="billing[is_company]"]) {
    display: none !important;
}


/* v0.6.9-safe - only current step visible and non-GLS methods disabled */
.cm-panel:not(.active),
.cm-step:not(.active) {
    display: none !important;
}

.cm-panel.active,
.cm-step.active {
    display: block !important;
}

.cm-coming-soon-row,
.cm-coming-soon-row .cm-option,
.cm-coming-soon-row label {
    opacity: 0.62 !important;
    cursor: not-allowed !important;
}

.cm-coming-soon-row input[type="radio"] {
    pointer-events: none !important;
}

.cm-coming-soon-row strong {
    color: #a05a00 !important;
    background: #fff2cc !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

/* Hide old detail/map/opening-hour panels for disabled shipping rows */
.cm-coming-soon-row .cm-shipping-detail,
.cm-coming-soon-row .cm-map-wrap,
.cm-coming-soon-row .cm-store-info {
    display: none !important;
}


/* v0.7.0 - coming soon rows readable */
.cm-coming-soon-row,
.cm-coming-soon-row .cm-option,
.cm-coming-soon-row label {
    opacity: 1 !important;
    cursor: not-allowed !important;
}

.cm-coming-soon-row .cm-option {
    background: #fafafa !important;
    border-color: #e4e4e4 !important;
}

.cm-coming-soon-row .cm-option span,
.cm-coming-soon-row .cm-option small,
.cm-coming-soon-row span,
.cm-coming-soon-row small {
    color: #333 !important;
    opacity: 1 !important;
}

.cm-coming-soon-row input[type="radio"] {
    opacity: 0.45 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.cm-coming-soon-row strong,
.cm-coming-soon-badge {
    color: #9a6b00 !important;
    background: #fff3cd !important;
    padding: 4px 10px !important;
    border-radius: 5px !important;
    display: inline-block !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    line-height: 1.2 !important;
}

.cm-coming-soon-row:hover,
.cm-coming-soon-row .cm-option:hover {
    background: #fafafa !important;
    border-color: #dcdcdc !important;
}


/* v0.7.1 - admin controlled shipping availability */
.cm-coming-soon-readable {
    opacity: 1 !important;
}

.cm-terms-box {
    margin: 18px 0 12px;
    padding: 14px 16px;
    background: #f4f1f8;
    border-radius: 4px;
}
.cm-terms-label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.45;
}
.cm-terms-error {
    color: #c00;
    font-weight: 600;
    margin: 8px 0 0;
}
