/* Checkout page */
.penny-checkout-page {
    background: #f5f5f5;
}

.penny-checkout-page .penny-checkout-hero {
    margin-bottom: 28px;
}

.penny-checkout-page .penny-checkout-hero h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 6px;
}

.penny-checkout-page .penny-checkout-hero p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.penny-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 991px) {
    .penny-checkout-grid {
        grid-template-columns: 1fr;
    }
}

.penny-checkout-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(18, 18, 18, 0.04);
    overflow: hidden;
}

.penny-checkout-card + .penny-checkout-card {
    margin-top: 20px;
}

.penny-checkout-card-head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.penny-checkout-card-head h2,
.penny-checkout-card-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.penny-checkout-card-head p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
}

.penny-checkout-card-body {
    padding: 20px 22px 22px;
}

.penny-checkout-card-body .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.penny-checkout-card-body .form-control {
    min-height: 46px;
    border-radius: 8px;
    border-color: #ddd;
    font-size: 14px;
}

.penny-checkout-card-body .form-control:focus {
    border-color: var(--theme, #ff914d);
    box-shadow: 0 0 0 3px rgba(255, 145, 77, 0.15);
}

.penny-checkout-option {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.penny-checkout-option:last-child {
    margin-bottom: 0;
}

.penny-checkout-option:has(.form-check-input:checked) {
    border-color: var(--theme, #ff914d);
    background: #fffaf6;
}

.penny-checkout-option .form-check {
    margin: 0;
}

.penny-checkout-payment-grid .penny-checkout-option,
.penny-checkout-delivery-grid .penny-checkout-option {
    height: 100%;
    margin-bottom: 0;
}

.penny-checkout-payment-grid .penny-checkout-option .form-check,
.penny-checkout-delivery-grid .penny-checkout-option .form-check {
    height: 100%;
}

.penny-checkout-option .form-check-label {
    font-size: 14px;
    line-height: 1.45;
}

.penny-checkout-option .form-check-label strong {
    font-weight: 600;
}

.penny-checkout-option-desc {
    margin: 6px 0 0 1.75rem;
    font-size: 13px;
    color: #666;
    line-height: 1.45;
}

.penny-checkout-account-choice {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fffaf6;
}

.penny-checkout-account-choice .form-check {
    margin: 0;
}

.penny-checkout-account-choice .form-check-label {
    font-size: 14px;
    line-height: 1.45;
}

.penny-checkout-account-choice .form-check-label span {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 13px;
}

.penny-checkout-coupon-row {
    display: flex;
    gap: 10px;
}

.penny-checkout-coupon-row .form-control {
    flex: 1;
}

.penny-checkout-coupon-row .penny-checkout-btn-secondary {
    flex: 0 0 auto;
    min-width: 100px;
}

.penny-checkout-summary {
    position: sticky;
    top: 100px;
}

.penny-checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.penny-checkout-summary-item:last-of-type {
    border-bottom: 0;
}

.penny-checkout-summary-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f3f3;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.penny-checkout-summary-info {
    flex: 1;
    min-width: 0;
}

.penny-checkout-summary-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.penny-checkout-summary-qty {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.penny-checkout-summary-price {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.penny-checkout-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.penny-checkout-totals-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
    color: #444;
}

.penny-checkout-totals-row.is-discount {
    color: #198754;
}

.penny-checkout-totals-row.is-total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    font-size: 18px;
    font-weight: 700;
    color: #121212;
}

.penny-checkout-actions {
    margin-top: 22px;
}

.penny-checkout-btn-primary {
    display: block;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: var(--theme, #ff914d);
    color: #121212;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.penny-checkout-btn-primary:hover {
    filter: brightness(0.96);
    color: #121212;
}

.penny-checkout-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.penny-checkout-btn-secondary {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #121212;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.penny-checkout-btn-secondary:hover {
    border-color: var(--theme, #ff914d);
    color: var(--theme, #ff914d);
}

.penny-checkout-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ebebeb;
}

.penny-checkout-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    font-size: 12px;
    color: #666;
}

.penny-checkout-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.penny-checkout-trust i {
    color: var(--theme, #ff914d);
}

.penny-checkout-page .theme-btn#placeOrderBtn {
    display: none;
}

.penny-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.penny-checkout-modal.is-open {
    display: flex;
}

.penny-checkout-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.55);
}

.penny-checkout-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.penny-checkout-modal__dialog h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.penny-checkout-modal__dialog p {
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
}

.penny-checkout-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
