﻿.card-options {
    display: flex;
    flex-direction: column;
}

.card-option {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    color: #ccc;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
    margin-bottom:1rem;
}

    .card-option:hover {
        border-color: #e74c3c;
        color: #fff;
    }

    .card-option.selected {
        border-color: #e74c3c;
        background: rgba(255, 50, 50, 0.1);
        box-shadow: 0 0 8px rgba(255, 80, 80, 0.4);
        color: #fff;
    }

.card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

    .card-header i {
        font-size: 1.2rem;
        color: #ddd;
    }

.card-option.selected i {
    color: #ff4d4d;
}

.card-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.card-fields {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-field {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

    .card-field label {
        font-weight: 300;
        color: #aaa;
    }

    .card-field span {
        font-weight: 500;
        color: #ddd;
    }


/* Once collapsed, center the selected option */
.card-options.collapsed {
    pointer-events:none;
}
/* container wrapper so we can position the reset button bottom-left */
.card-options-wrapper {
    position: relative;
}


.card-address {
    color: #bbb;
    font-size: 0.95rem;
}


.card-option.fade-out {
    opacity: 0;
    transform: scale(0.92);
    height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    transition: all 0.45s ease;
    pointer-events: none;
}

.card-options-wrapper.collapsed .card-options{
    pointer-events:none;
}



/* Reset button bottom-left inside wrapper */
.reset-btn {
    background: none;
    border: 1px solid #555;
    color: #ccc;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .reset-btn:hover {
        color: #fff;
        border-color: #e74c3c;
    }

    /* Accessibility: ensure keyboard focus visible */
    .card-option:focus,
    .reset-btn:focus {
        outline: 3px solid rgba(231,76,60,0.12);
        outline-offset: 3px;
    }

.card-address input{
    pointer-events: all;
}

/* Responsive tweak */
@media (max-width: 720px) {
    .card-options-wrapper.collapsed .card-option.selected {
        width: 94%;
    }

    .reset-btn {
        left: 0.6rem;
        bottom: 0.5rem;
        padding: 0.35rem 0.7rem;
    }
}