/* کارت‌های آدرس بر اساس wishlist */

/* FIX: z-index:-1 روی المنت اصلی حذف شد — برای overlay از ::before استفاده کن */
.checkout-page {
    position: relative;
    width: 100%;
    min-height: 100dvh;
}

.checkout-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(3, 17, 0, 0.85), rgba(3, 48, 0, 0.65)), url('../images/backgrand-images/checkout.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.address-container {
    max-width: 1200px;
    margin: 100px auto 30px;
    padding: 20px;
}

.address-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.address-item {
    background: var(--dark);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all .3s ease;
}

.address-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.address-item .item-name {
    font-size: .8rem;
    font-weight: 500;
    color: var(--light);
    text-align: right;
}

.address-item .item-extra {
    font-size: 0.75rem;
    color: var(--light);
}

.select-address-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .3s;
    font-family: inherit;
    /* FIX: font-weight:450 غیراستاندارد بود — به 500 تغییر یافت */
    font-weight: 500;
    width: 100%;
    margin-left: 12px;
}

.select-address-btn:hover {
    background: #3a9a85;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(71, 181, 158, 0.3);
}

.remove-address-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 8px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .3s;
    width: 40px !important;
    height: 40px !important;
}

.remove-address-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.add-new-address {
    font-family: inherit;
    text-align: center;
    margin-top: 20px;
}

.input-group textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    background: transparent !important;
    color: #fff !important;
    padding: 0.75rem 0.25rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s ease, color 0.25s ease;
    text-align: right;
    font-family: inherit;
    resize: vertical;
}

.input-group textarea:focus {
    border-bottom-color: var(--primary);
}

.input-group textarea::placeholder {
    color: transparent;
}

.input-group textarea:focus+label,
.input-group textarea:not(:placeholder-shown)+label {
    transform: translateY(-1.4rem);
    font-size: 0.8rem;
    color: var(--primary);
}

.checkbox-a11y {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.checkbox-a11y input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkbox-a11y label {
    position: static;
    font-size: 0.95rem;
    color: var(--light);
    cursor: pointer;
}

input[type="checkbox"] {
    border-radius: 5px;
}

button {
    font-weight: 500;
    font-family: inherit;
}
