/* Styles for fork-blocks-integration */
/* Address Book Link Styles */


.woo-address-book-cart-link-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.woo-address-book-cart-link {
    color: #0071a1;
    text-decoration: underline;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.woo-address-book-cart-link:hover {
    color: #005f87;
    text-decoration: none;
}

.woo-address-book-cart-link:focus {
    outline: 2px solid #0071a1;
    outline-offset: 2px;
}



.woo-address-book-checkout-link {
    color: #0071a1;
    text-decoration: underline;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.woo-address-book-checkout-link:hover {
    color: #005f87;
    text-decoration: none;
}

.woo-address-book-checkout-link:focus {
    outline: 2px solid #0071a1;
    outline-offset: 2px;
}



/** Address Book Styles My ACCT*/


/* Modern Address Book Styling */
.addresses.address-book {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.wc-address-book-address {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.wc-address-book-address:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.wc-address-book-address-default {
    border-left: 4px solid #0071a1;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.wc-address-book-address-badges {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.wc-address-book-address-default-label {
    background: #0071a1;
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 8px 0 6px;
    box-shadow: 0 2px 6px rgba(0,113,161,0.3);
}

.wc-address-book-address address {
    font-style: normal;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 400;
}

/* Style to make nickname more prominent */
.wc-address-book-address address::first-line {
    font-weight: 700;
    font-size: 1.3em;
    color: #0d1117;
}




/* Button container */
.wc-address-book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8e8e8;
}

/* Button styling */
.wc-address-book-meta .button {
    padding: 0.6em 1.4em;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    line-height: 1;
    flex: 1 1 auto;
    min-width: 80px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin: 0;
    white-space: nowrap;
    box-sizing: border-box;
}


.wc-address-book-meta .button:not(:last-child) {
    margin-right: 0.5rem;
}

.wc-address-book-edit {
    background: #f5f5f5;
    color: #333;
    /* Force vertical and horizontal centering for anchor tags */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    vertical-align: middle;
    line-height: 1 !important;
    padding: 0 1.4em !important;
}

.wc-address-book-edit:hover {
    background: #e0e0e0;
    color: #111;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


.wc-address-book-delete {
    background: #f5f5f5;
    color: #d63384;
}

.wc-address-book-delete:hover:not(:disabled) {
    background: #e0e0e0;
    color: #b02a37;
    box-shadow: 0 2px 6px rgba(214,51,132,0.15);
}

.wc-address-book-make-default {
    background: #0071a1;
    color: #fff;
}

.wc-address-book-make-default:hover:not(:disabled) {
    background: #005f87;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,113,161,0.2);
}

/* Disabled state */
.wc-address-book-meta .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .addresses.address-book {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .wc-address-book-address {
        padding: 0.875rem;
    }
    
    .wc-address-book-meta {
        flex-direction: column;
    }
    
    .wc-address-book-meta .button {
        flex: none;
        width: 100%;
        padding: 0.6rem 1rem;
    }
}

/* Make the first line (nickname) stand out more */
.wc-address-book-address::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,113,161,0.15) 0%, transparent 100%);
    border-radius: 8px 8px 0 0;
}

.wc-address-book-address-default::before {
    background: linear-gradient(90deg, rgba(0,113,161,0.4) 0%, transparent 100%);
}

/* Enhance the address text formatting */
.wc-address-book-address address {
    font-family: system-ui, -apple-system, sans-serif;
}



/* Address Book Input/Edit Submit */

/* Save Address Button Styling */
p:has(button[name="save_address"]) {
    text-align: center;
    margin: 1.5rem 0;
}

button[name="save_address"].button,
input[name="save_address"].button {
    background: #0071a1;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.6em 1.4em;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    line-height: 1;
    min-width: 120px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin: 0;
    white-space: nowrap;
    box-sizing: border-box;
}

button[name="save_address"].button:hover,
input[name="save_address"].button:hover {
    background: #005f87;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,113,161,0.2);
    transform: translateY(-1px);
}

button[name="save_address"].button:focus,
input[name="save_address"].button:focus {
    outline: 2px solid #0071a1;
    outline-offset: 2px;
}

button[name="save_address"].button:active,
input[name="save_address"].button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
