/**
 * PrintAllDay Korean Localization — Public Styles
 */

/* ─── 공통 입력 필드 크기 ─── */
.pad-kl-address-form input[type="text"],
.pad-kl-address-form input[type="tel"],
.pad-kl-address-form select,
.pad-kl-sender-form input[type="text"],
.pad-kl-sender-form input[type="tel"],
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="tel"],
.woocommerce-EditAccountForm input[type="password"] {
    height: auto;
    padding: 8px 12px;
    font-size: 14px;
}

/* ─── 주소 편집 폼 입력/버튼 크기 ─── */
.pad-kl-address-form .input-text,
.pad-kl-address-form input.input-text,
.pad-kl-sender-form .input-text,
.pad-kl-sender-form input.input-text {
    height: auto !important;
    min-height: unset !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.pad-kl-address-form .button,
.pad-kl-address-form button.button,
.pad-kl-sender-form .button,
.pad-kl-sender-form button.button {
    padding: 8px 16px !important;
    font-size: 13px !important;
    height: auto !important;
    min-height: unset !important;
    line-height: 1.5 !important;
}

/* ─── 계정 정보 폼 입력 크기 ─── */
.woocommerce-EditAccountForm .input-text,
.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm .woocommerce-Input {
    height: auto !important;
    min-height: unset !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* ─── 공통 버튼 (.pad-kl-btn) ─── */
.pad-kl-address-book .pad-kl-btn,
.pad-kl-address-book button.pad-kl-btn,
.pad-kl-address-book a.pad-kl-btn {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    height: auto;
    min-height: unset;
    line-height: 1.4;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f7f7f7;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

/* ─── 주소록 ─── */
.pad-kl-address-book__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pad-kl-address-book__header h3 {
    margin: 0;
}

.pad-kl-address-book__empty {
    padding: 40px 0;
    text-align: center;
    color: #888;
}

/* 주소 카드 그리드 */
.pad-kl-address-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.pad-kl-address-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: border-color 0.2s;
}

.pad-kl-address-card:hover {
    border-color: #999;
}

.pad-kl-address-card--default {
    border-color: #333;
    border-width: 2px;
}

.pad-kl-address-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.pad-kl-address-card__alias {
    font-weight: 600;
    font-size: 15px;
}

.pad-kl-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.pad-kl-badge--default {
    background-color: #333;
    color: #fff;
}

.pad-kl-badge--connected {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.pad-kl-address-card__body p {
    margin: 0 0 4px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.pad-kl-address-card__name {
    font-weight: 600;
    color: #222 !important;
}

.pad-kl-address-card__actions {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pad-kl-address-card__actions .pad-kl-btn {
    font-size: 12px;
    padding: 4px 12px;
}

.pad-kl-btn--add {
    white-space: nowrap;
}

/* 주소 입력 폼 */
.pad-kl-address-form__inner {
    max-width: 600px;
}

.pad-kl-postcode-wrap {
    display: flex;
    gap: 8px;
}

.pad-kl-postcode-wrap input {
    flex: 0 0 120px;
}

.pad-kl-postcode-wrap .button {
    white-space: nowrap;
}

.pad-kl-address-form__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.pad-kl-form-status {
    font-size: 13px;
    color: #666;
}

/* 발신인 정보 */
.pad-kl-sender-info {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #eee;
}

.pad-kl-sender-info h3 {
    margin-bottom: 16px;
}

.pad-kl-sender-form {
    max-width: 500px;
}

.pad-kl-sender-form-wrap {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.pad-kl-sender-form-wrap h4 {
    margin: 0 0 12px;
    font-size: 15px;
}

.pad-kl-sender-status {
    font-size: 13px;
    color: #666;
}

/* ─── 체크아웃 ─── */
.pad-kl-checkout-section {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

.pad-kl-checkout-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pad-kl-edit-link {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    text-decoration: underline;
}

.pad-kl-info-table {
    width: 100%;
    border-collapse: collapse;
}

.pad-kl-info-table th {
    text-align: left;
    width: 100px;
    padding: 6px 12px 6px 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    vertical-align: top;
}

.pad-kl-info-table td {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
}

.pad-kl-shipping-section #pad_kl_address_select {
    width: 100%;
    margin-bottom: 16px;
}

.pad-kl-shipping-fields {
    margin-top: 8px;
}

.pad-kl-sender-checkout-fields {
    margin-top: 8px;
}

/* 주문 상세 */
.pad-kl-order-details {
    margin-top: 32px;
}

.pad-kl-order-details h2 {
    font-size: 16px;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.pad-kl-order-details .pad-kl-info-table {
    margin-bottom: 16px;
}

/* ─── 배송조회 ─── */
.pad-kl-delivery-tracking {
    margin-top: 32px;
}

.pad-kl-delivery-tracking h2 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.pad-kl-tracking-status {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

/* 진행 단계 (preparing) */
.pad-kl-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
    overflow-x: auto;
}

.pad-kl-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pad-kl-progress-step__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pad-kl-progress-step--done .pad-kl-progress-step__dot {
    background: #49a5d4;
}

.pad-kl-progress-step__label {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.pad-kl-progress-step--done .pad-kl-progress-step__label {
    color: #49a5d4;
    font-weight: 600;
}

.pad-kl-progress-step__line {
    width: 40px;
    height: 2px;
    background: #ddd;
    margin: 0 4px;
    align-self: flex-start;
    margin-top: 13px;
    flex-shrink: 0;
}

.pad-kl-progress-step__line--done {
    background: #49a5d4;
}

/* handed 배지 */
.pad-kl-tracking-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}

.pad-kl-tracking-badge--handed {
    color: #49a5d4;
}

.pad-kl-tracking-message {
    font-size: 14px;
    color: #666;
    margin: 8px 0 16px;
    line-height: 1.6;
}

.pad-kl-tracking-meta {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.pad-kl-tracking-meta th {
    text-align: left;
    width: 80px;
    padding: 6px 12px 6px 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.pad-kl-tracking-meta td {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
}

/* 배송 조회 외부 링크 버튼 */
.pad-kl-tracking-actions {
    margin-top: 8px;
}

.pad-kl-btn--track-external {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #49a5d4;
    color: #fff;
    border-color: #49a5d4;
    font-weight: 500;
}

.pad-kl-btn--track-external:hover,
.pad-kl-btn--track-external:focus {
    background: #3a8fba;
    border-color: #3a8fba;
    color: #fff;
}

/* ─── 소셜 계정 연동 (마이페이지) ─── */
.pad-kl-social-connections {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #eee;
}

.pad-kl-social-connections h3 {
    margin: 0 0 16px;
}

.pad-kl-social-connections__notice {
    padding: 10px 14px;
    background: #fff8e1;
    border-left: 3px solid #ffc107;
    font-size: 13px;
    color: #665c00;
    margin-bottom: 16px;
    border-radius: 4px;
}

.pad-kl-social-connections__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pad-kl-social-connections__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
}

.pad-kl-social-connections__provider {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.pad-kl-social-connections__icon {
    display: flex;
    align-items: center;
}

.pad-kl-social-connections__status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pad-kl-social-connections__connected {
    font-size: 13px;
    color: #666;
}

.pad-kl-social-connections__hint {
    font-size: 12px;
    color: #999;
}

/* ─── 소셜 로그인 ─── */
.pad-kl-social-login {
    margin-bottom: 20px;
}

.pad-kl-social-login__divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0 0 16px;
    color: #888;
    font-size: 13px;
}

.pad-kl-social-login__divider::before,
.pad-kl-social-login__divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.pad-kl-social-login__divider span {
    padding: 0 12px;
    white-space: nowrap;
}

.pad-kl-social-login__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pad-kl-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
}

.pad-kl-social-btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* 카카오 */
.pad-kl-social-btn--kakao {
    background-color: #FEE500;
    color: #000000;
}

.pad-kl-social-btn--kakao:hover,
.pad-kl-social-btn--kakao:visited {
    color: #000000;
}

/* 구글 (다음 단계 구현용) */
.pad-kl-social-btn--google {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.pad-kl-social-btn--google:hover,
.pad-kl-social-btn--google:visited {
    color: #333;
}

/* ─── Blocksy 로그인 모달 ─── */
.ct-account-modal label {
    line-height: 1.4 !important;
    font-size: 14px !important;
}

.pad-kl-social-login {
    margin-bottom: 20px !important;
}

.ct-account-forms .login {
    margin-top: 0;
}

.ct-account-modal form > * {
    --theme-content-spacing: 10px !important;
}

/* ─── 반응형 ─── */
@media (max-width: 600px) {
    .pad-kl-address-book__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pad-kl-address-cards {
        grid-template-columns: 1fr;
    }

    .pad-kl-postcode-wrap {
        flex-direction: column;
    }

    .pad-kl-postcode-wrap input {
        flex: 1;
    }
}
