/**
 * Button Styles
 * Contains all button variants and states
 */

.btn {
    display: inline-block;
    background-color: var(--burgundy);
    color: white;
    padding: 14px 32px;
    min-height: 44px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    font-family: var(--subheading-font);
    transition: var(--transition);
    border: var(--sticker-border-width) solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
    vertical-align: middle;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scale(0);
    transition: var(--transition);
    border-radius: 50%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn:hover::after {
    transform: scale(2);
}

.btn-primary {
    background: var(--burgundy);
    color: white;
}

.btn-primary:hover {
    background: var(--burgundy-hover);
}

.btn-secondary {
    background-color: white;
    color: var(--burgundy);
    border: var(--sticker-border-width) solid var(--sticker-border-color);
}

.btn-secondary:hover {
    background-color: var(--sticker-pastel-blue);
    transform: translateY(-2px);
    box-shadow: var(--sticker-shadow);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
}

.btn-outline-primary:hover {
    background-color: var(--burgundy);
    color: white;
}

.btn-outline-secondary {
    background-color: transparent;
    border: 2px solid var(--gray-color);
    color: var(--gray-color);
}

.btn-outline-secondary:hover {
    background-color: var(--gray-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Remove button specific styles - icon-based button; 44px for touch target */
.btn-remove {
    white-space: nowrap !important;
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important; /* Remove padding since icon is centered */
    margin: 0 !important; /* Remove any default margins */
    flex-shrink: 0 !important; /* Prevent button from shrinking in flex containers */
    overflow: visible; /* Override .btn overflow: hidden to prevent icon clipping */
    text-align: center; /* Ensure icon is centered horizontally */
    display: inline-flex !important; /* Use flexbox for better alignment control */
    align-items: center !important; /* Center icon vertically */
    justify-content: center !important; /* Center icon horizontally */
    border-radius: 4px;
    box-sizing: border-box !important; /* Ensure padding/border included in dimensions */
    line-height: 1 !important; /* Remove line height that could affect centering */
}

.btn-remove i {
    font-size: 1rem; /* Icon size */
    line-height: 1 !important; /* Remove extra line height */
    margin: 0 !important; /* Remove any icon margins */
    padding: 0 !important; /* Remove any icon padding */
    display: inline-block; /* Inline-block for proper centering */
    vertical-align: middle; /* Additional vertical alignment */
}

/* Ensure order-item first child doesn't take all space */
.order-item > div:first-child {
    flex: 1;
    min-width: 0; /* Allow text to truncate if needed */
    margin-right: 15px; /* Add spacing between content and button */
}
