/* wp-content/themes/gtmotor/assets/css/base-components.css */

.gtm-btn {
    display: inline-flex;
    width: auto;
    min-width: 200px;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 96px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    line-height: 1;
    transition: all 0.2s ease;
}

.gtm-btn:hover {
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.25);
    transform: none;
}

.gtm-btn.primary {
    background: var(--c-active-brand, #333);
    color: #fff;
}

.gtm-btn.secondary {
    background: #fff;
    border: 2px solid var(--c-active-brand, #333);
    color: var(--c-active-brand, #333);
}

.gtm-btn.disabled {
    background: #E2E2E2;
    color: #999;
    border: 1px solid #ccc;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* Global colour variants — usable on any .gtm-btn. */
.gtm-btn-blue { background: #2A02FC !important; color: #fff !important; }
.gtm-btn-yellow { background: #FFC424 !important; color: #111 !important; }

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    margin-top: auto;
}
/* --- GLOBAL MODAL FIXES --- */

.modal-backdrop {
    --bs-backdrop-zindex: 6000; 
    z-index: 6000 !important;   
}

.modal {
    --bs-modal-zindex: 6010;   
    z-index: 6010 !important;  
}

/* Ensure the close button is never covered by modal content */
.modal-header .btn-close {
    z-index: 6020; 
    position: relative;
}

/* External Link Indicator */
.gtm-external-icon {
    font-size: 0.75em; /* 12px relative to 16px font */
    vertical-align: middle;
    margin-left: 0.35em;
    opacity: 0.6;
    display: inline-block;
    line-height: 1;
}

/* Specific adjustment for Card Titles to align with bold uppercase text */
.gtm-card-title .gtm-external-icon {
    vertical-align: text-top;
    margin-top: 2px;
    margin-left:0;
}

/* Specific adjustment for Nav Dropdowns */
.dropdown-item .gtm-external-icon {
    opacity: 0.5;
    white-space: nowrap;
}