.antom-payment-container {
    min-height: 40px;
    position: relative;
}

.antom-payment-container iframe {
    border: none;
    width: 100%;
}

.antom-card-container {
    min-height: 260px;
}

.antom-googlepay-container {
    min-height: 52px;
}

.antom-wallet-action {
    min-height: 52px;
    position: relative;
    width: 100%;
}

.antom-wallet-action__button {
    align-items: center;
    background: #111827;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 17px;
    font-weight: 700;
    height: 52px;
    justify-content: center;
    line-height: 1.2;
    min-height: 52px;
    outline: none;
    padding: 0 18px;
    transition: background-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.antom-wallet-action__button:hover:not(:disabled) {
    background: #030712;
}

.antom-wallet-action__button:disabled,
.antom-wallet-action__button[aria-disabled="true"] {
    cursor: default;
    opacity: 0.64;
}

.antom-wallet-action__button:focus-visible {
    box-shadow: 0 0 0 3px rgb(5 150 105 / 35%);
}

.antom-wallet-action[data-antom-state="ready"] .antom-wallet-action__button {
    display: flex;
}

.antom-wallet-action .antom-payment-container {
    min-height: 52px;
}

.antom-wallet-action[data-antom-state="ready"] .antom-wallet-action__sdk {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.antom-wallet-action .antom-wallet-skeleton-button {
    max-width: none;
}

.antom-googlepay-express {
    display: grid;
    gap: 8px;
    width: 100%;
}

.antom-googlepay-express__button {
    align-items: center;
    background: #111827;
    border: 0;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 17px;
    font-weight: 700;
    height: 52px;
    justify-content: center;
    line-height: 1.2;
    min-height: 52px;
    padding: 0 18px;
    transition: background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
    width: 100%;
}

.antom-googlepay-express__button:hover:not(:disabled) {
    background: #030712;
}

.antom-googlepay-express[data-button-color="white"] .antom-googlepay-express__button {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #111827;
}

.antom-googlepay-express[data-button-color="white"] .antom-googlepay-express__button:hover:not(:disabled) {
    background: #f9fafb;
}

.antom-googlepay-express__button:disabled,
.antom-googlepay-express__button[aria-disabled="true"] {
    cursor: default;
    opacity: 0.64;
}

.antom-googlepay-express__button:focus-visible {
    box-shadow: 0 0 0 3px rgb(5 150 105 / 35%);
    outline: none;
}

.antom-googlepay-express__sdk {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.antom-googlepay-express__status {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
    min-height: 18px;
    text-align: center;
}

.antom-googlepay-express[data-state="error"] .antom-googlepay-express__status {
    color: #9a3412;
    font-weight: 600;
}

.antom-googlepay-express--pdp {
    margin-top: 0;
}

.antom-googlepay-express--cart {
    max-width: 360px;
}

.antom-googlepay-express--minicart {
    margin-bottom: 12px;
}

.antom-googlepay-method-placeholder {
    display: none;
}

[data-antom-wallet-hidden="true"] {
    display: none !important;
}

.antom-wallet-placeholder {
    align-items: center;
    background: #fff;
    display: grid;
    gap: 8px;
    min-height: 52px;
}

.antom-wallet-skeleton-button {
    animation: antom-card-skeleton-shimmer 1.35s ease-in-out infinite;
    background: linear-gradient(100deg, #111827 8%, #374151 18%, #111827 33%);
    background-size: 220% 100%;
    border-radius: 4px;
    display: block;
    height: 44px;
    max-width: 240px;
    width: 100%;
}

.antom-wallet-placeholder__status {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.antom-googlepay-container[data-antom-state="ready"] .antom-wallet-placeholder,
.antom-googlepay-container[data-antom-state="submitting"] .antom-wallet-placeholder,
.antom-googlepay-container[data-antom-state="redirecting"] .antom-wallet-placeholder {
    display: none;
}

.antom-googlepay-container[data-antom-state="error"] .antom-wallet-placeholder {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    display: grid;
    min-height: 88px;
    padding: 14px;
    text-align: center;
}

.antom-googlepay-container[data-antom-state="error"] .antom-wallet-skeleton-button {
    display: none;
}

.antom-googlepay-container[data-antom-state="error"] .antom-wallet-placeholder__status {
    clip: auto;
    color: #9a3412;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    line-height: 1.5;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
}

.antom-card-placeholder {
    background: #fff;
    display: block;
    min-height: 244px;
    padding: 6px 0 2px;
}

.antom-card-placeholder__status {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.antom-card-container[data-antom-state="ready"] .antom-card-placeholder,
.antom-card-container[data-antom-state="submitting"] .antom-card-placeholder,
.antom-card-container[data-antom-state="redirecting"] .antom-card-placeholder {
    display: none;
}

.antom-card-skeleton {
    display: grid;
    gap: 16px;
    width: 100%;
}

.antom-card-skeleton__brands {
    align-items: center;
    display: flex;
    gap: 10px;
    height: 32px;
}

.antom-card-skeleton__brand,
.antom-card-skeleton__field {
    animation: antom-card-skeleton-shimmer 1.35s ease-in-out infinite;
    background: linear-gradient(100deg, #f3f4f6 8%, #e5e7eb 18%, #f3f4f6 33%);
    background-size: 220% 100%;
    display: block;
}

.antom-card-skeleton__brand {
    border-radius: 6px;
    height: 28px;
    width: 46px;
}

.antom-card-skeleton__brand--wide {
    width: 56px;
}

.antom-card-skeleton__field {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 58px;
}

.antom-card-skeleton__field--number,
.antom-card-skeleton__field--name {
    width: 100%;
}

.antom-card-skeleton__row {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.antom-card-container[data-antom-state="error"] .antom-card-placeholder {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    display: grid;
    min-height: 150px;
    padding: 18px;
    text-align: center;
}

.antom-card-container[data-antom-state="error"] .antom-card-skeleton {
    display: none;
}

.antom-card-container[data-antom-state="error"] .antom-card-placeholder__status {
    clip: auto;
    color: #9a3412;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    line-height: 1.5;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
}

.antom-card-submit-overlay {
    align-items: center;
    background: rgb(255 255 255 / 86%);
    border-radius: 8px;
    color: #111827;
    display: none;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    inset: 0;
    justify-content: center;
    min-height: 150px;
    position: absolute;
    text-align: center;
    z-index: 5;
}

.antom-wallet-submit-overlay {
    align-items: center;
    background: rgb(255 255 255 / 86%);
    border-radius: 8px;
    color: #111827;
    display: none;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    inset: 0;
    justify-content: center;
    min-height: 52px;
    position: absolute;
    text-align: center;
    z-index: 5;
}

.antom-card-container[data-antom-state="submitting"] .antom-card-submit-overlay,
.antom-card-container[data-antom-state="redirecting"] .antom-card-submit-overlay {
    display: flex;
}

.antom-googlepay-container[data-antom-state="submitting"] .antom-wallet-submit-overlay,
.antom-googlepay-container[data-antom-state="redirecting"] .antom-wallet-submit-overlay {
    display: flex;
}

.antom-card-submit-overlay__spinner {
    animation: antom-card-spin 0.8s linear infinite;
    border: 3px solid #d1d5db;
    border-radius: 999px;
    border-top-color: #059669;
    height: 22px;
    width: 22px;
}

.antom-wallet-submit-overlay__spinner {
    animation: antom-card-spin 0.8s linear infinite;
    border: 3px solid #d1d5db;
    border-radius: 999px;
    border-top-color: #059669;
    height: 20px;
    width: 20px;
}

@keyframes antom-card-skeleton-shimmer {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

@keyframes antom-card-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .antom-card-placeholder {
        min-height: 232px;
    }

    .antom-card-skeleton {
        gap: 14px;
    }

    .antom-card-skeleton__row {
        gap: 12px;
    }

    .antom-card-skeleton__field {
        height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .antom-card-skeleton__brand,
    .antom-card-skeleton__field,
    .antom-card-submit-overlay__spinner,
    .antom-wallet-skeleton-button,
    .antom-wallet-submit-overlay__spinner {
        animation: none;
    }
}
