.apple-pay-button {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
    box-shadow: 
        0 10px 40px -12px rgba(0, 0, 0, 0.25), 
        0 4px 12px -4px rgba(0, 0, 0, 0.15);
}

.apple-pay-button:hover {
    transform: scale(1.02);
    box-shadow: 
        0 20px 60px -12px rgba(0, 0, 0, 0.35), 
        0 8px 16px -8px rgba(0, 0, 0, 0.25);
}

.apple-pay-button:active {
    transform: scale(0.98);
}

/* Background gradient */
.button-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    z-index: 1;
}

/* Animated shine effect */
.button-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 45%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 55%, 
        transparent 100%
    );
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.6s ease-out;
    z-index: 2;
}

.apple-pay-button:hover .button-shine {
    opacity: 1;
    transform: translateX(0%);
}

/* Grain texture */
.button-grain {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4.5' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
    background-size: 128px 128px;
    pointer-events: none;
    z-index: 3;
}

/* Border glow */
.button-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
    z-index: 4;
}

.apple-pay-button:hover .button-glow {
    opacity: 1;
}

/* Content */
.button-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    z-index: 5;
}

/* Apple logo */
.apple-logo {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease-out;
}

.apple-pay-button:hover .apple-logo {
    transform: scale(1.1);
}

/* Text container */
.text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.text-small {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-large {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Pressed state overlay */
.button-pressed {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
}

.apple-pay-button:active .button-pressed {
    opacity: 1;
}

/* Supporting text */
.support-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    opacity: 0.7;
    transition: opacity 0.3s ease-out;
}

.apple-pay-button:hover ~ .support-text {
    opacity: 1;
}

/* Disabled/Processing state */
.apple-pay-button:disabled,
.apple-pay-button.processing {
    cursor: not-allowed;
    opacity: 0.6;
    transform: scale(1) !important;
    box-shadow: 
        0 4px 20px -8px rgba(0, 0, 0, 0.15), 
        0 2px 8px -4px rgba(0, 0, 0, 0.1) !important;
}

.apple-pay-button:disabled .button-bg,
.apple-pay-button.processing .button-bg {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 50%, #6b7280 100%);
}

.apple-pay-button:disabled .button-shine,
.apple-pay-button.processing .button-shine {
    display: none;
}

.apple-pay-button:disabled .apple-logo,
.apple-pay-button.processing .apple-logo {
    transform: scale(1) !important;
}

.apple-pay-button:disabled:hover,
.apple-pay-button.processing:hover {
    transform: scale(1) !important;
}
.apple-pay-alert {
    transition: opacity 2s ease-out;
    opacity: 1;
}

.apple-pay-alert.fade-out {
    opacity: 0;
}