div.addresses {
    background: #fff;
}
div.addresses .address_inner{
   padding:15px;
}
div.addresses .alert{margin: 0 25px;}
.bloc_adresses{margin: 15px;}
.bloc_adresses.address {
   padding:0 15px;
	line-height:18px;
}
#delivery_address {margin-right:65px;}

.address_add {
   margin:10px 0;
}

.address_select {
	border:1px solid #cecece;
	width: 200px;
	margin: 0;
}
label[for=id_address_delivery], label[for=id_address_invoice] {
	float: left;
	width: 225px;
}
.addressesAreEquals label {
	margin-left: 5px;
}
.addressesAreEquals input {
	float: left;
}
.adress_content{padding: 3px 0 0 8px;}
.adress_actions{padding: 3px 0 0 8px;margin-top: 15px;}

/* PAGE ADRESSES ******************************************************************************* */

.update_link{font-size: 14px;padding-top: 5px;}
.default_address{color:#000 !important; cursor:default}
.addresses .address {
    border: 1px solid #D7E3FF;
    padding: 10px;
    margin-top: 15px;
    font-size: 14px;
    line-height: 16px;
    color: #3C4049;
}
.addresses .address a{
    color: #0f92bf
}
.addresses .address.alternate_item,
.addresses .address.last_item {
   margin-right:0;
   border-left: 1px solid #D7E3FF;
}
.addresses .address .address_title {
	padding: 5px 0 10px 0;
   background: url('../img/address-header-bg.png') repeat-x 0 115% transparent;
   font-size: 16px;
   margin-bottom: 5px;
}
#order-detail .addresses{
   padding-bottom: 15px;
}
.customer_invoice_type {
   display: none;
}
.company .dni{display: none;}

/* ============================================================
   "My addresses" card-grid redesign — based on the "Mis Direcciones"
   mockup in Claude Design. Scoped under .myaddr_* (not the legacy
   .addresses/.address/.adress_content classes above, which order-detail.tpl
   still uses for the order's shipping/billing address pair — sharing those
   class names would have leaked this redesign onto that page too).
   ============================================================ */
.myaddr_page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.myaddr_head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.myaddr_head_text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-width: 680px;
}
/* h1 styling (size/weight/line-height/color) comes entirely from the
   global h1 rule (global.css) now — same title style everywhere (e.g.
   "Historial de mis pedidos"), no per-page override. */
.myaddr_head_text p {
    font-size: 15px;
    line-height: 1.5;
    color: #3f4247;
    margin: 0;
}
.myaddr_add_btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border-radius: 9999px;
    background: #79a8dd;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff !important;
    white-space: nowrap;
}
.myaddr_add_btn:hover {
    background: #c7daf1;
    color: #fff;
}
.myaddr_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.myaddr_card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4eaf1;
}
.myaddr_card_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.myaddr_alias {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    color: #1d1e20;
    margin: 0;
}
.myaddr_card_actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.myaddr_icon_btn {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: none;
    background: none;
    color: rgb(28, 146, 219);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.myaddr_icon_btn i {
    font-size: 16px;
}
.myaddr_icon_btn:hover {
    background: #edf8ff;
}
.myaddr_icon_btn_danger {
    color: #6b7280;
}
.myaddr_icon_btn_danger:hover {
    background: #fdecea;
    color: #c2412a;
}
.myaddr_icon_btn_disabled {
    color: #c4c9d0;
    cursor: not-allowed;
}
.myaddr_icon_btn_disabled:hover {
    background: none;
}
.myaddr_badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.myaddr_badge {
    padding: 3px 9px;
    border-radius: 5px;
    background: #e9f2fb;
    color: rgb(28, 146, 219);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 12px;
}
.myaddr_body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    line-height: 1.5;
    color: #3f4247;
}
.myaddr_line {
    display: block;
}
.myaddr_line_name {
    font-weight: 500;
    color: #1d1e20;
}
.myaddr_meta_row {
    display: flex;
    gap: 6px 16px;
    flex-wrap: wrap;
    padding-top: 6px;
}
.myaddr_meta {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}
.myaddr_footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef1f5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.myaddr_setdefault_link {
    align-self: flex-start;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: rgb(28, 146, 219);
}
.myaddr_footer_note {
    font-size: 13px;
    color: #6b7280;
}
.myaddr_empty_card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    border-radius: 16px;
    border: 1.5px dashed #b9cde4;
    background: #fafcfe;
    text-align: center;
}
.myaddr_empty_card span {
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
    max-width: 240px;
}
.myaddr_outline_btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #79a8dd;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #79a8dd !important;
    white-space: nowrap;
}
.myaddr_outline_btn:hover {
    background: #eff5fb;
}
.myaddr_back_link {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #1d1e20 !important;
}
.myaddr_back_link i {
    font-size: 15px;
}
.myaddr_back_link:hover {
    color: rgb(28, 146, 219) !important;
}
@media (max-width: 680px) {
    .myaddr_grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

