/* public/assets/css/custom_style.css */
.checkout-container { padding-top: 40px; padding-bottom: 60px; max-width: 1140px; margin-left:auto; margin-right:auto; }
.gry-bg {
    background-color: white;
    min-height: 100vh;
}

.checkout-card {
    border: 1px solid gray !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 24px;
    background: #fff;
}

.card-header {
    background-color: #fff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.5rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h5 {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Add Address Button */
.btn-add-address {
    background: #fff;
    color: #e870a7;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #e870a7;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.btn-add-address:hover {
    background: #e62d04;
    color: #fff;
}

/* Address Details */
.address-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.address-detail-table td {
    padding: 5px 0;
    font-size: 14px;
    vertical-align: top;
    border: none;
}

.label-cell {
    color: #64748b;
    width: 130px;
    font-weight: 500;
}

.value-cell {
    color: #1e293b;
    font-weight: 600;
}

/* Radio Card Styling */
.aiz-megabox-elem {
    border: 2px solid #f1f5f9 !important;
    border-radius: 10px !important;
    transition: 0.2s;
    cursor: pointer;
    background: #fff;
    display: flex;
    padding: 20px !important;
}

input[type="radio"]:checked + .aiz-megabox-elem {
    border-color: #64748b !important;
    background-color: #fffaf9;
}

.aiz-rounded-check {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
}

input[type="radio"]:checked + .aiz-megabox-elem .aiz-rounded-check {
    background: #293b55;
    border-color: #293b55;
}

input[type="radio"]:checked + .aiz-megabox-elem .aiz-rounded-check:after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

/* Payment Card */
.payment-card-selected {
    border: 2px solid #e5e7e9 !important;
    background-color: #fffaf9 !important;
    position: relative;
}

.knet-logo-box {
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(108,100,100,0.05);
    display: inline-block;
}

.info-notice-box {
    background: #f8fafc;
    border: 1px dashed #292f36;
    border-radius: 12px;
    padding: 1.5rem;
}

/* Summary & Buttons */
.sticky-summary {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.btn-place-order {
    background: #1e293b;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    border: none;
    transition: 0.3s;
    font-size: 16px;
    margin-top: 15px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-place-order:hover {
    background: #000;
}

.btn-place-order:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.shipping-info-check {
    width: 24px;
    height: 24px;
    background-color: #29c54e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

/* Checkbox highlight */
input[name="address_id"]:checked ~ .card-header .address-check {
    background-color: #28a745;
}

/* Product Name Ellipsis */
.product-name-text {
    display: inline-block;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
