@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600;700&display=swap');

.gift-page {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.gift-card {
    width: min(520px, 100%);
    background: #ffffff;
    border: 1px solid #ebe3d5;
    border-radius: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(166, 143, 104, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 640px;
}

.gift-header {
    padding: 2rem 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gift-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #4a453e;
}

.gift-icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #8c8375;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gift-icon-button:hover {
    background: #f7f2e9;
}

.gift-icon-button.is-hidden {
    visibility: hidden;
}

.gift-body {
    flex: 1;
    padding: 0 2rem 1rem;
    overflow-y: auto;
}

.gift-step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #8c8375;
    margin-bottom: 1rem;
}

.gift-search {
    position: relative;
    margin-bottom: 2rem;
}

.gift-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b0a695;
}

.gift-search input {
    width: 100%;
    background: #f7f2e9;
    border: 1px solid transparent;
    border-radius: 1.5rem;
    padding: 0.95rem 1rem 0.95rem 2.6rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.gift-search input:focus {
    background: #ffffff;
    border-color: #d4c4a8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 196, 168, 0.2);
}

.gift-user-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gift-user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.5rem;
    border: 1px solid #f0ebe0;
    background: #ffffff;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
}

.gift-user-item:hover {
    border-color: #d4c4a8;
}

.gift-user-item.is-selected {
    background: #f2e8d5;
    border-color: #d4c4a8;
}

.gift-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f2e8d5;
    color: #a68f68;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.gift-avatar.is-primary {
    background: #a68f68;
    color: #ffffff;
}

.gift-user-info {
    min-width: 0;
}

.gift-user-name {
    font-weight: 700;
    margin: 0;
    color: #4a453e;
}

.gift-user-sub {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #8c8375;
}

.gift-empty {
    color: #8c8375;
    font-size: 0.85rem;
}

.gift-pagination {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #8c8375;
}

.gift-pagination button {
    border: none;
    background: #f2e8d5;
    color: #a68f68;
    padding: 0.4rem 0.8rem;
    border-radius: 0.8rem;
    font-weight: 700;
}

.gift-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gift-recipient-card {
    background: #faf7f2;
    border: 1px solid #ebe3d5;
    border-radius: 1.8rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.gift-recipient-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.gift-recipient-label {
    margin: 0;
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #8c8375;
    font-weight: 700;
}

.gift-recipient-name {
    margin: 0;
    font-weight: 700;
    color: #4a453e;
}

.gift-amount-label {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: #8c8375;
}

.gift-amount-input {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.gift-amount-input input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 2.4rem;
    font-weight: 700;
    color: #4a453e;
}

.gift-amount-input input:focus {
    outline: none;
}

.gift-amount-input span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a453e;
}

.gift-balance {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: #a68f68;
    background: #fff9f0;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
}

.gift-message label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8c8375;
}

.gift-message textarea {
    width: 100%;
    min-height: 120px;
    border-radius: 1.5rem;
    border: 1px solid transparent;
    background: #f7f2e9;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    resize: none;
}

.gift-message textarea:focus {
    background: #ffffff;
    border-color: #d4c4a8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 196, 168, 0.2);
}

.gift-alert {
    margin-top: 1rem;
    background: #fff3e0;
    color: #a16207;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
}

.gift-success {
    text-align: center;
    padding: 1rem 0 2rem;
}

.gift-success-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #f2e8d5;
    color: #a68f68;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.gift-success h2 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #4a453e;
}

.gift-success p {
    margin: 0 0 1.5rem;
    color: #8c8375;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gift-highlight {
    color: #4a453e;
    font-weight: 700;
}

.gift-summary {
    background: #faf7f2;
    border: 1px solid #ebe3d5;
    border-radius: 1.5rem;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #8c8375;
    text-align: left;
}

.gift-summary strong {
    font-weight: 700;
    color: #4a453e;
}

.gift-footer {
    padding: 0 2rem 2rem;
}

.gift-primary-button,
.gift-secondary-button {
    width: 100%;
    border: none;
    border-radius: 1.5rem;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.gift-primary-button {
    background: #a68f68;
    color: #ffffff;
    box-shadow: 0 10px 25px -10px rgba(166, 143, 104, 0.4);
}

.gift-primary-button:disabled {
    background: #e0d7c6;
    cursor: not-allowed;
    box-shadow: none;
}

.gift-secondary-button {
    background: #f7f2e9;
    color: #7a6f5d;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}
